We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[object Object]
With the following malformed schema:
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/product.schema.json", "title": "servers", "type": "object", "additionalProperties": { "type": { "$ref": "#/$defs/server" } }, "$defs": { "server": { "type": "object", "required": [ "id", "cpu", "mem", "storage" ], "properties": { "id": { "description": "The unique identifier for a product", "type": "string" }, "cpu": { "description": "The unique identifier for a product", "type": "number" }, "mem": { "description": "The unique identifier for a product", "type": "string" }, "storage": { "description": "The unique identifier for a product", "type": "string" } } } } }
where we are using:
"additionalProperties": { "type": { "$ref": "#/$defs/server" } },
instead of
"additionalProperties": { "$ref": "#/$defs/server" },
with the following yaml
foo: id: foo-1 cpu: 1 mem: 12GB storage: 200GB
on hover we get:
Incorrect type. Expected "[object Object]". yaml-schema: servers
the editor should show something besides [object Object] maybe unknown or error!
unknown
error!
on hover with malformed schema the tooltip shows [object Object]
The text was updated successfully, but these errors were encountered:
evidolob
Successfully merging a pull request may close this issue.
Describe the bug
With the following malformed schema:
where we are using:
instead of
with the following yaml
on hover we get:
Expected Behavior
the editor should show something besides
[object Object]
maybeunknown
orerror!
Current Behavior
on hover with malformed schema the tooltip shows
[object Object]
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: