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

Invalid schema when anyOf & properties are used #314

Closed
carlosvfernandez opened this issue Jun 25, 2020 · 2 comments
Closed

Invalid schema when anyOf & properties are used #314

carlosvfernandez opened this issue Jun 25, 2020 · 2 comments
Labels

Comments

@carlosvfernandez
Copy link

carlosvfernandez commented Jun 25, 2020

Hello, let's see if we can solve this together ... I have this schema:

AiModel.json

{
  "$id": "id",
  "$schema": "https://json-schema.org/draft-07/schema#",
  "title": "***",
  "description": "description",
  "type": "object",
  "additionalProperties": false,
  "anyOf": [
    {
      "$ref": "./properties/externalConfiguration.json"
    },
    {
      "$ref": "./properties/internalConfiguration.json"
    }
  ],
  "properties": {
    "active": {
      "$ref": "properties/active.json"
    },
    "author": {
      "$ref": "properties/author.json"
    }
}

And the result is:
export type AIModel = ExternalModel | InternalModel;

I don't have any object of my properties here...

Thank you in advance.

@carlosvfernandez
Copy link
Author

Looks like there are like 8 tasks open about this, one is from 2018....

@bcherny
Copy link
Owner

bcherny commented Nov 29, 2020

Fixed in 4aabd23, will be published in v10

@bcherny bcherny closed this as completed Nov 29, 2020
@bcherny bcherny added the bug label Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants