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

unexpected generation of type #2

Open
sqs opened this issue Jun 28, 2018 · 0 comments
Open

unexpected generation of type #2

sqs opened this issue Jun 28, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@sqs
Copy link
Member

sqs commented Jun 28, 2018

The following JSON Schema triggers a bug in the compiler. It emits an Args-typed field but there is no type definition of Args.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "args": {
      "type": "object",
      // Adding this line fixes it:
      //
      // "additionalProperties": true
    }
  }
}
@sqs sqs added the bug Something isn't working label Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant