-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Documentation of Schema Attributes #290
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8c57e08
[trivial] include explanation of abstract and concrete schemas
trieloff 29dbdde
Explain the status attributes
trieloff 8c41743
[trivial] lint
trieloff 5262aab
Explain the `@id` attribute
trieloff 84cdbfc
Use extensions to describe custom and additional properties
trieloff d762800
Merge branch 'master' into extensibility-docs
trieloff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,17 @@ | ||
## Abstract and Concrete Schemas | ||
|
||
XDM is defined using a modular schema framework that encourages the re-use of schemas or parts of schemas. | ||
As a result, XDM consists of abstract and concrete schemas. | ||
|
||
### Abstract Schemas | ||
|
||
Abstract schemas or schema fragments are partial schemas that can be re-used in other schemas, but that do not allow the creation of any instances. | ||
As an example, the [Language Alternative](reference/assets/language-alternative.schema.md) schema which is used to define metadata that varies by language can be used as part of an [Asset](reference/assets/asset.schema.md), but it cannot stand on its own. | ||
|
||
Abstract schemas are often used to define properties that are used in multiple schemas at once. | ||
|
||
### Concrete Schemas | ||
|
||
Concrete schemas or proper schemas are schemas that can be instantiated, i.e. they describe instances of entities that are exposed by APIs that are implementing XDM. | ||
|
||
Concrete schemas often include or reference Abstract schemas. |
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,6 @@ | ||
## Identifying Entities | ||
|
||
Instances of most schemas in XDM are uniquely identifiable based on the value of the `@id` attribute. | ||
This attribute is always a URI, but may not be present or required in all schemas. | ||
|
||
Schemas that have an `@id` attribute are considered identifiable, schemas that do not have this attribute are typically only used as child-objects in identifiable schemas. |
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,11 @@ | ||
## Schema Status | ||
|
||
The status of each schema in XDM describes the likelihood of change of a schema. | ||
In particular for XDM Versions prior to XDM 1.0.0, this can inform users and providers of XDM-compatible APIs of the stability of a given schema. | ||
|
||
XDM defines following status values: | ||
|
||
* Stable: the schema is considered stable and can be used in production without any risk. Additions to the schema are possible, but will not impact existing implementations. | ||
* Stabilizing: No further major changes to the schema are expected, but may occur after review. Implementors should check the status of the schema regularly. | ||
* Experimental: Major changes can be expected because the schema is still in active development. Implementors should proceed with caution. | ||
* Deprecated: Schema is no longer maintained, supported or is superceded by another schema/set of schemas. Implementors should update their implementations. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having this at the schema level is fine, do we need to also have this at the field level when it deviates from the schema's "status"? For example a new field added to a stable schema but that field would not yet be stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. #303 covers parts of that.