Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to parse "additionalProperties" #13

Open
smondet opened this issue Nov 24, 2024 · 0 comments
Open

Failure to parse "additionalProperties" #13

smondet opened this issue Nov 24, 2024 · 0 comments

Comments

@smondet
Copy link

smondet commented Nov 24, 2024

(Sill from https://github.com/googleapis/googleapis/ :) )

"GoogleProtobufAny": {
  "type": "object",
  "properties": {
    "@type": {
      "type": "string",
      "description": "The type of the serialized message."
    }
  },
  "additionalProperties": true,
  "description": "Contains an arbitrary serialized message along with a @type that describes the type of the serialized message."
},

It seems to choke on "additionalProperties": true,:

jsonschema2atd: internal error, uncaught exception:
                Yojson__Common.Json_error("Line 15232, bytes -633454--633420:\nExpected '{' but found 'true,\"description\":\"Contains an a'")

According to
https://json-schema.org/understanding-json-schema/reference/object#additionalproperties
→ It can be a boolean or a schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant