-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely rewrote the bundling logic to fix APIDevTools/swagger-pars…
- Loading branch information
1 parent
030f604
commit 32510a3
Showing
16 changed files
with
1,112 additions
and
701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"required string": { | ||
"$ref": "required-string.yaml" | ||
}, | ||
"string": { | ||
"$ref": "#/required%20string/type" | ||
}, | ||
"name": { | ||
"$ref": "../definitions/name.yaml" | ||
}, | ||
"age": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"gender": { | ||
"type": "string", | ||
"enum": ["male", "female"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
title: name | ||
type: object | ||
required: | ||
- first | ||
- last | ||
properties: | ||
first: | ||
$ref: ../definitions/definitions.json#/required string | ||
last: | ||
$ref: ./required-string.yaml | ||
middle: | ||
type: | ||
$ref: "definitions.json#/name/properties/first/type" | ||
minLength: | ||
$ref: "definitions.json#/name/properties/first/minLength" | ||
prefix: | ||
$ref: "../definitions/definitions.json#/name/properties/last" | ||
minLength: 3 | ||
suffix: | ||
type: string | ||
$ref: "definitions.json#/name/properties/prefix" | ||
maxLength: 3 |
3 changes: 3 additions & 0 deletions
3
tests/specs/external-partial/definitions/required-string.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: required string | ||
type: string | ||
minLength: 1 |
Oops, something went wrong.
Using indexOf to compare the hash doesn't seem to work when the hashes start with the same string. Here's an example: