Skip to content

references in a multi-file json schema don't resolve correctly  #921

Description

@ataibarkai

given a json schema encoded in the filesystem as such:

schemas/
   validate.json
   events/
      administration.json
      ads.json
      ...
   products/
      administration.json
      ads.json
      ...

references between files don't resolve correctly.

e.g. in schemas/products/administration.json, there is a reference to ../events/administration.json.

quicktype seems to incorrectly infer schemas/products/events/administration.json rather than schemas/events/administration.json as the file path:

quicktype -s schema schemas/validate.json -o models.swift
-->
Error: Could not fetch schema schemas/products/events/administration.json, referred to from schemas/products/administration.json#/allOf/0: Error: Input file schemas/products/events/administration.json does not exist.

example:
schemas.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions