google / google/jsonschema-go

Set $schema during JSON marshaling?

Open
#24 1 comment 1 reaction 1 assignee Claimed by @jba View on GitHub
Dominant language
Go
Stars
478
Forks
37
PR merge metrics
No merged PRs in 30d

Description

A high level question:

Should we set `$schema` when marshaling our schemas, by default?
https://json-schema.org/understanding-json-schema/basics#declaring-a-json-schema

That increases the likelihood that the schema is interpreted correctly.

(relatedly, if the user sets $schema to a different value, we should probably marshal it accordingly -- see #4)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.