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

throw "Error: TypeError: Cannot read property 'value' of null" for specific json schema #719

Closed
werifu opened this issue Sep 20, 2022 · 1 comment

Comments

@werifu
Copy link

werifu commented Sep 20, 2022

If you are reporting a bug, please include the following:

  1. the JSON Schema content that fails - preferably using http://json-schema-faker.js.org/ (paste the schema, click Generate example and then copy and paste the resulting URL from the browser address bar)

This is a valid json schema

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false,
  "$schema": "https://json-schema.org/draft-07/schema"
}
  1. the result you got

image

  1. the result you expected

Gernerate an empty json {}

@pateketrueke
Copy link
Member

Hi @werifu good catch! Definitely is a use-case, I'll be fixing it asap, 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

No branches or pull requests

2 participants