YAML schema support #471
akselerando
started this conversation in
Ideas
Replies: 1 comment
-
Hello @akselerando , I'm not against supporting it, just that a big part of this discussion is related to #258 (comment) : the parsing library, as you can also have YAML in Currently, it seems that @apidevtools/json-schema-ref-parser is the best candidate (in lack of better & maintained one) : would be interesting if someone give a try. In theory, most changes would be in the entrypoint file as typings are almost correct (just // What the user provides
export type Props = {
/**
* The JSON schema to use
*/
schema: unknown,
/**
* To customize the ref resolving
* By default, only inline references will be dereferenced by @stoplight/json-ref-resolver
*/
resolverOptions?: IResolveOpts
}
// What inner components use
type InnerViewerProperties = {
schema: JSONSchema
} Would you or someone else like to give a hand ? Thx in advance |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Love this plugin!
It would be nice to add YAML schema support
A quick and dirty solution could be to allow YAML data as input, but convert it to JSON behind the scenes.
A more proper solution would be even better ofc
Beta Was this translation helpful? Give feedback.
All reactions