Fix invalid JSON to use dpouble quotes; use "name": consistently in JSON
MODIFY
versions/3.0.md
versions/3.0.md
@@ -926,30 +926,24 @@ A request body with a referenced model definition.
"schema": {
"$ref": "#/definitions/User"
},
- "examples": [
- { "$ref": 'http://foo.bar#/examples/address-example.json'}
- ]
+ "examples": [ "http://foo.bar/examples/user-example.json" ]
},
"application/xml": {
"schema": {
"$ref": "#/definitions/User"
},
- "examples": [
- { "$ref": 'http://foo.bar#/examples/address-example.xml'}
- ]
+ "examples": [ "http://foo.bar/examples/user-example.xml" ]
},
"text/plain": {
- "examples": [
- { "$ref": 'http://foo.bar#/examples/address-example.txt'}
- ]
+ "examples": [ "http://foo.bar/examples/user-example.txt" ]
},
"*": {
- "example": {
- $ref: "http://foo.bar#/examples/address-example.whatever"
+ "schema": {
+ "$ref": "http://foo.bar/examples/user-example.whatever"
}
}
}
-```
+}```
```yaml
description: user to add to the system

Fix invalid JSON to use dpouble quotes; use "name": consistently in JSON