Skip to content

Commit

Permalink
fix: keep SpecFilePath in documents
Browse files Browse the repository at this point in the history
Some spec document production methods did not keep the $ref resolution
base path: this prevents spec expansion if the root document is not
self-contained.

Fixed: JSONSpec(), Pristine() and Expanded() to keep the original path
to the root.

Signed-off-by: Frederic BIDON <[email protected]>
  • Loading branch information
fredbi committed Dec 4, 2023
1 parent 8456822 commit e5dfc13
Show file tree
Hide file tree
Showing 6 changed files with 1,582 additions and 12 deletions.
17 changes: 17 additions & 0 deletions fixtures/bugs/145/Program Files (x86)/AppName/ref.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"definitions": {
"todo-partial": {
"title": "Todo Partial",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"completed": {
"type": ["boolean", "null"]
}
},
"required": ["name", "completed"]
}
}
}
Loading

0 comments on commit e5dfc13

Please sign in to comment.