Skip to content

possible to rewrite a schema with no $ref? #49

@fmaritato

Description

@fmaritato

In order to reuse certain definitions, I have many $refs in my schemas that point to definitions in a common.json file. Is there a way to use justify to resolve all these references and rewrite a version of the schema with all the resolutions?

So instead of

"uid": {
  "$ref": "common.json#uid"
}

the rewritten schema file would have:

"uid": {
  "type": "string",
  "minLength": 1,
  "description": "user id"
}

Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions