Skip to content

Commit

Permalink
Merge pull request #261 from teq0/fix/issue-92
Browse files Browse the repository at this point in the history
fix(schemaProxy.js): fix resolving $refs that are file references - #92
  • Loading branch information
trieloff committed Dec 14, 2020
2 parents 8949130 + 5a18ef4 commit fad0006
Show file tree
Hide file tree
Showing 21 changed files with 453 additions and 60 deletions.
@@ -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"
```
@@ -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 examples/docs/complex-properties-reflocalfiledef-properties.md
@@ -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
38 changes: 38 additions & 0 deletions examples/docs/complex-properties-reflocalfiledef.md
@@ -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))
Expand Up @@ -17,9 +17,9 @@ https://example.com/schemas/complex#/properties/refnestedobj/properties/refobj

# undefined Properties

| Property | Type | Required | Nullable | Defined by |
| :---------- | -------- | -------- | -------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [foo](#foo) | `object` | Optional | cannot be null | [Complex References](complex-properties-refnestedobj-properties-refobj-properties-simple.md "https://example.com/schemas/simple#/properties/refnestedobj/properties/refobj/properties/foo") |
| Property | Type | Required | Nullable | Defined by |
| :---------- | -------- | -------- | -------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
| [foo](#foo) | `object` | Optional | cannot be null | [Complex References](simple.md "https://example.com/schemas/simple#/properties/refnestedobj/properties/refobj/properties/foo") |

## foo

Expand All @@ -29,10 +29,10 @@ This is a _very_ simple example of a JSON schema. There is only one property.
`foo`

- is optional
- Type: `object` ([Simple](complex-properties-refnestedobj-properties-refobj-properties-simple.md))
- Type: `object` ([Simple](simple.md))
- cannot be null
- defined in: [Complex References](complex-properties-refnestedobj-properties-refobj-properties-simple.md "https://example.com/schemas/simple#/properties/refnestedobj/properties/refobj/properties/foo")
- defined in: [Complex References](simple.md "https://example.com/schemas/simple#/properties/refnestedobj/properties/refobj/properties/foo")

### foo Type

`object` ([Simple](complex-properties-refnestedobj-properties-refobj-properties-simple.md))
`object` ([Simple](simple.md))
12 changes: 6 additions & 6 deletions examples/docs/complex-properties-refobj.md
Expand Up @@ -17,9 +17,9 @@ https://example.com/schemas/complex#/properties/refobj

# undefined Properties

| Property | Type | Required | Nullable | Defined by |
| :---------- | -------- | -------- | -------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [foo](#foo) | `object` | Optional | cannot be null | [Complex References](complex-properties-refnestedobj-properties-refobj-properties-simple.md "https://example.com/schemas/simple#/properties/refobj/properties/foo") |
| Property | Type | Required | Nullable | Defined by |
| :---------- | -------- | -------- | -------------- | :---------------------------------------------------------------------------------------------------------- |
| [foo](#foo) | `object` | Optional | cannot be null | [Complex References](simple.md "https://example.com/schemas/simple#/properties/refobj/properties/foo") |

## foo

Expand All @@ -29,10 +29,10 @@ This is a _very_ simple example of a JSON schema. There is only one property.
`foo`

- is optional
- Type: `object` ([Simple](complex-properties-refnestedobj-properties-refobj-properties-simple.md))
- Type: `object` ([Simple](simple.md))
- cannot be null
- defined in: [Complex References](complex-properties-refnestedobj-properties-refobj-properties-simple.md "https://example.com/schemas/simple#/properties/refobj/properties/foo")
- defined in: [Complex References](simple.md "https://example.com/schemas/simple#/properties/refobj/properties/foo")

### foo Type

`object` ([Simple](complex-properties-refnestedobj-properties-refobj-properties-simple.md))
`object` ([Simple](simple.md))
42 changes: 42 additions & 0 deletions examples/docs/complex-properties-simple.md
@@ -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")

0 comments on commit fad0006

Please sign in to comment.