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

fixed #2411: true is a JSON schema equivalent to any #2412

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

feefladder
Copy link
Contributor

See #2411. Tested with the example:

  1. put into test.json:

    {
       "$schema": "https://json-schema.org/draft/2020-12/schema",
       "properties": {
           "enum": {
               "type": "array",
               "items": true
           }
      }
    }
    
  2. script/quicktype --src test.json --src-lang schema --just-types -o test.ts

  3. output:

    export interface TestObject {
        enum?: any[];
        [property: string]: any;
    }
    

I didn't look into how to test everything, but would be happy to do so if given a pointer

@feefladder feefladder changed the title fixed #2411 fixed #2411: true is a JSON schema equivalent to any Sep 26, 2023
@dvdsgl dvdsgl merged commit f440afd into glideapps:master Feb 14, 2024
24 checks passed
@dvdsgl
Copy link
Member

dvdsgl commented Feb 14, 2024

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants