ajv-validator / ajv-validator/ajv-cli

reference resolution failing if the referenced file is alphabetically coming after the base file

Offen
#221 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
316
Forks
77
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

https://github.com/ajv-validator/ajv-cli/blob/58d6f074720d5dc0773c3786320b7d35718060cd/src/commands/compile.ts#L54

as we can see in the above code, adding schema and compiling it is done together

if schema/A file has schema/B as a reference and we pass
/schema/* as the glob value to ajv cli compile command,
it will throw invalid schema error

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.