-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from teq0/fix/issue-92
fix(schemaProxy.js): fix resolving $refs that are file references - #92
- Loading branch information
Showing
21 changed files
with
453 additions
and
60 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
examples/docs/complex-properties-reflocalfiledef-properties-third-property.md
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,44 @@ | ||
# Third property Schema | ||
|
||
```txt | ||
https://example.com/schemas/complex#/properties/reflocalfiledef/properties/third | ||
``` | ||
|
||
|
||
|
||
|
||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | | ||
| :------------------ | ---------- | -------------- | ------------ | :---------------- | --------------------- | ------------------- | ---------------------------------------------------------------------------------------- | | ||
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [complex.schema.json\*](../generated-schemas/complex.schema.json "open original schema") | | ||
|
||
## third Type | ||
|
||
unknown ([Third property](complex-properties-reflocalfiledef-properties-third-property.md)) | ||
|
||
# Third property Properties | ||
|
||
| Property | Type | Required | Nullable | Defined by | | ||
| :---------- | -------- | -------- | -------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [baz](#baz) | `string` | Optional | cannot be null | [Extending](extending-definitions-third-property-properties-baaaz.md "https://example.com/schemas/extending#/definitions/third/properties/baz") | | ||
|
||
## baz | ||
|
||
This property has a unique name to demonstrate it's uniqueness. | ||
|
||
|
||
`baz` | ||
|
||
- is optional | ||
- Type: `string` ([BAAAZ!](extending-definitions-third-property-properties-baaaz.md)) | ||
- cannot be null | ||
- defined in: [Extending](extending-definitions-third-property-properties-baaaz.md "https://example.com/schemas/extending#/definitions/third/properties/baz") | ||
|
||
### baz Type | ||
|
||
`string` ([BAAAZ!](extending-definitions-third-property-properties-baaaz.md)) | ||
|
||
### baz Examples | ||
|
||
```json | ||
"I'm just a humble example" | ||
``` |
44 changes: 44 additions & 0 deletions
44
examples/docs/complex-properties-reflocalfiledef-properties-third.md
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,44 @@ | ||
# Untitled undefined type in Complex References Schema | ||
|
||
```txt | ||
https://example.com/schemas/complex#/properties/reflocalfiledef/properties/third | ||
``` | ||
|
||
|
||
|
||
|
||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | | ||
| :------------------ | ---------- | -------------- | ------------ | :---------------- | --------------------- | ------------------- | ---------------------------------------------------------------------------------------- | | ||
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [complex.schema.json\*](../generated-schemas/complex.schema.json "open original schema") | | ||
|
||
## third Type | ||
|
||
unknown | ||
|
||
# undefined Properties | ||
|
||
| Property | Type | Required | Nullable | Defined by | | ||
| :---------- | -------- | -------- | -------------- | :------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [baz](#baz) | `string` | Optional | cannot be null | [Extending](extending-definitions-third-properties-baaaz.md "https://example.com/schemas/extending#/definitions/third/properties/baz") | | ||
|
||
## baz | ||
|
||
This property has a unique name to demonstrate it's uniqueness. | ||
|
||
|
||
`baz` | ||
|
||
- is optional | ||
- Type: `string` ([BAAAZ!](extending-definitions-third-properties-baaaz.md)) | ||
- cannot be null | ||
- defined in: [Extending](extending-definitions-third-properties-baaaz.md "https://example.com/schemas/extending#/definitions/third/properties/baz") | ||
|
||
### baz Type | ||
|
||
`string` ([BAAAZ!](extending-definitions-third-properties-baaaz.md)) | ||
|
||
### baz Examples | ||
|
||
```json | ||
"I'm just a humble example" | ||
``` |
16 changes: 16 additions & 0 deletions
16
examples/docs/complex-properties-reflocalfiledef-properties.md
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,16 @@ | ||
# Untitled undefined type in Complex References Schema | ||
|
||
```txt | ||
https://example.com/schemas/complex#/properties/reflocalfiledef/properties | ||
``` | ||
|
||
|
||
|
||
|
||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | | ||
| :------------------ | ---------- | -------------- | ----------------------- | :---------------- | --------------------- | ------------------- | ---------------------------------------------------------------------------------------- | | ||
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [complex.schema.json\*](../generated-schemas/complex.schema.json "open original schema") | | ||
|
||
## properties Type | ||
|
||
unknown |
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,38 @@ | ||
# Untitled object in Complex References Schema | ||
|
||
```txt | ||
https://example.com/schemas/complex#/properties/reflocalfiledef | ||
``` | ||
|
||
|
||
|
||
|
||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | | ||
| :------------------ | ---------- | -------------- | ------------ | :---------------- | --------------------- | ------------------- | ---------------------------------------------------------------------------------------- | | ||
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [complex.schema.json\*](../generated-schemas/complex.schema.json "open original schema") | | ||
|
||
## reflocalfiledef Type | ||
|
||
`object` ([Details](complex-properties-reflocalfiledef.md)) | ||
|
||
# undefined Properties | ||
|
||
| Property | Type | Required | Nullable | Defined by | | ||
| :-------------- | -------- | -------- | -------------- | :------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [third](#third) | `object` | Optional | cannot be null | [Complex References](extending-definitions-third.md "https://example.com/schemas/complex#/properties/reflocalfiledef/properties/third") | | ||
|
||
## third | ||
|
||
|
||
|
||
|
||
`third` | ||
|
||
- is optional | ||
- Type: `object` ([Details](extending-definitions-third.md)) | ||
- cannot be null | ||
- defined in: [Complex References](extending-definitions-third.md "https://example.com/schemas/complex#/properties/reflocalfiledef/properties/third") | ||
|
||
### third Type | ||
|
||
`object` ([Details](extending-definitions-third.md)) |
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,42 @@ | ||
# Simple Schema | ||
|
||
```txt | ||
https://example.com/schemas/simple#/properties/refnamed | ||
``` | ||
|
||
This is a _very_ simple example of a JSON schema. There is only one property. | ||
|
||
|
||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In | | ||
| :------------------ | ---------- | -------------- | ------------ | :---------------- | --------------------- | ------------------- | ---------------------------------------------------------------------------------------- | | ||
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [complex.schema.json\*](../generated-schemas/complex.schema.json "open original schema") | | ||
|
||
## refnamed Type | ||
|
||
`object` ([Simple](complex-properties-simple.md)) | ||
|
||
# Simple Properties | ||
|
||
| Property | Type | Required | Nullable | Defined by | | ||
| :-------- | -------- | -------- | -------------- | :----------------------------------------------------------------------------------------- | | ||
| [id](#id) | `string` | Optional | cannot be null | [Simple](simple-properties-id.md "https://example.com/schemas/simple#/properties/id") | | ||
|
||
## id | ||
|
||
A unique identifier given to every addressable thing. | ||
|
||
|
||
`id` | ||
|
||
- is optional | ||
- Type: `string` | ||
- cannot be null | ||
- defined in: [Simple](simple-properties-id.md "https://example.com/schemas/simple#/properties/id") | ||
|
||
### id Type | ||
|
||
`string` | ||
|
||
### id Constraints | ||
|
||
**URI**: the string must be a URI, according to [RFC 3986](https://tools.ietf.org/html/rfc3986 "check the specification") |
Oops, something went wrong.