Skip to content
Snippets Groups Projects
Commit c7b9b820 authored by Lars Trieloff's avatar Lars Trieloff
Browse files

[trivial] add an example of an abstract schema

parent 9ca105c4
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@
## /
* [Abstract](./abstract.schema.md)`https://example.com/schemas/abstract`
* [Definitions](./definitions.schema.md)`https://example.com/schemas/definitions`
* [Example](./example.schema.md)`https://example.com/schemas/example`
* [Simple](./simple.schema.md)`https://example.com/schemas/simple`
......
# Abstract
* **Type:** object
This is an abstract schema. It has `definitions`, but does not declare any properties
## first
### Properties
### foo
* **Type:** string
A unique identifier given to every addressable thing.
## second
### Properties
### bar
* **Type:** string
A unique identifier given to every addressable thing.
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://example.com/schemas/abstract",
"title": "Abstract",
"description": "This is an abstract schema. It has `definitions`, but does not declare any properties",
"type": "object",
"definitions": {
"first": {
"properties": {
"foo": {
"type": "string",
"description": "A unique identifier given to every addressable thing."
}
}
},
"second": {
"properties": {
"bar": {
"type": "string",
"description": "A unique identifier given to every addressable thing."
}
}
}
}
}
\ No newline at end of file
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This file is licensed to you under the Apache License, Version 2.0 (the 'License');",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at http://www.apache.org/licenses/LICENSE-2.0"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://example.com/schemas/abstract",
"title": "Abstract",
"description": "This is an abstract schema. It has `definitions`, but does not declare any properties",
"type": "object",
"definitions": {
"first": {
"properties": {
"foo": {
"type": "string",
"description": "A unique identifier given to every addressable thing."
}
}
},
"second": {
"properties": {
"bar": {
"type": "string",
"description": "A unique identifier given to every addressable thing."
}
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment