GithubHelp home page GithubHelp logo

Comments (6)

siimsoni avatar siimsoni commented on September 25, 2024 1

additionalProperties is part of JSON Schema Draft 4, and a quite important part of it, as it's needed to represent value maps.
https://datatracker.ietf.org/doc/html/draft-fge-json-schema-validation-00#section-5.4.4
It is quite surprising that this is not supported, considering the project claims full JSON Schema Draft 4 support.

from json-schema-viewer.

philsturgeon avatar philsturgeon commented on September 25, 2024

This is effecting the elements v7 and is not handled in json-schema-viewer v4.

image

from json-schema-viewer.

Airkro avatar Airkro commented on September 25, 2024

Maybe the viewer's internal logic could turn additionalProperties into properties/{*} to support this.

from json-schema-viewer.

philsturgeon avatar philsturgeon commented on September 25, 2024

This could be considered "OpenAPI v3.1 Compatibility" work, as this was not supported in prior versions and is now.

http://json-schema.org/understanding-json-schema/reference/object.html#additional-properties

from json-schema-viewer.

onavratil-monetplus avatar onavratil-monetplus commented on September 25, 2024

This bug is a major inconvenience

from json-schema-viewer.

danielgtaylor avatar danielgtaylor commented on September 25, 2024

Any update on this? It's hard to recommend Elements be used when a fairly basic feature is missing. This makes it so maps are just documented as object which isn't very useful, particularly when the map value is a complex type.

from json-schema-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.