-
Notifications
You must be signed in to change notification settings - Fork 0
Update schema manifest document #7
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # yaml-language-server: $schema=https://www.expresslang.org/schemas/changes/v1/schema_changes.yaml | ||
| --- | ||
| schema: Document_and_version_identification_arm | ||
| editions: | ||
| - version: '2' | ||
| - version: '3' | ||
| versions: | ||
| - version: 2 | ||
| - version: 3 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| # yaml-language-server: $schema=https://www.expresslang.org/schemas/changes/v1/mapping_changes.yaml | ||
| --- | ||
| schema: dimension_tolerance | ||
| editions: | ||
| - version: '6' | ||
| versions: | ||
| - version: 6 | ||
| mappings: | ||
| - description: Geometric_dimension entity and attributes mapping has been updated | ||
| - description: Angle_plus_minus_bounds and Length_plus_minus_bounds mappings was | ||
| added | ||
| - version: '7' | ||
| - version: 7 | ||
| mappings: | ||
| - description: Angle_plus_minus_bounds mapping has been updated | ||
| - description: Length_plus_minus_bounds mapping has been updated | ||
| - description: Applied_activity_assignment ENTITY mapped | ||
| - version: '8' | ||
| - version: 8 | ||
| mappings: | ||
| - description: Geometric_dimension entity and attributes mapping has been updated |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
1 change: 1 addition & 0 deletions
1
...s/express-schema-manifest/schemas-srl.yml → ...schema-manifest/examples/schemas-srl.yaml
This file contains hidden or 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
36 changes: 36 additions & 0 deletions
36
sources/express-schema-manifest/schemas/schema_manifest.yaml
This file contains hidden or 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,36 @@ | ||
| $schema: http://json-schema.org/draft-07/schema# | ||
| title: EXPRESS Schema Manifest | ||
| description: Defines a cohesive set of EXPRESS schemas and their locations. | ||
| type: object | ||
| required: | ||
| - schemas | ||
| additionalProperties: false | ||
| properties: | ||
| path: | ||
| type: string | ||
| description: >- | ||
| (optional) Root path for all schemas. If not set, the root path is set to | ||
| the directory where the manifest file is located. Can be an absolute path | ||
| or include shell expansions like ~ for home directory. | ||
| schemas: | ||
| type: object | ||
| description: >- | ||
| Map of schema names to their configurations. Each key is the name | ||
| of an EXPRESS schema. | ||
| additionalProperties: | ||
| oneOf: | ||
| - type: "null" | ||
| description: >- | ||
| Schema uses default path pattern: `{root_path}/{schema_name}.exp`. | ||
| - type: object | ||
| description: >- | ||
| Schema configuration with explicit path. | ||
| additionalProperties: false | ||
| properties: | ||
| path: | ||
| type: string | ||
| description: >- | ||
| Path to the schema file, relative to root path or absolute. | ||
| Relative paths that do not start with `/` are considered relative | ||
| to the root path. `..` can be used to refer to parent directories. | ||
| Can include shell expansions like `~`. |
This file contains hidden or 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 hidden or 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,12 @@ | ||
| [appendix,obligation=informative] | ||
| == Examples | ||
|
|
||
| This annex provides examples of the EXPRESS Schema Manifest format. | ||
|
|
||
| This example shows a schema manifest that defines a selection of schemas from | ||
| the SRL (STEP Resource Library). | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| include::../examples/schemas-srl.yaml[] | ||
| ---- |
This file contains hidden or 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,41 @@ | ||
| [appendix,obligation=normative] | ||
| == Schemas | ||
|
|
||
| === General | ||
|
|
||
| This annex provides the YAML Schema definitions for the EXPRESS Schema Manifest YAML | ||
| format defined in this document. | ||
|
|
||
| This schema can be used to validate EXPRESS Schema Manifest YAML files and to | ||
| generate documentation or tooling for working with EXPRESS change records. | ||
|
|
||
| The schemas are defined in YAML Schema format that follows the JSON Schema | ||
| format (draft-07). | ||
|
|
||
| The schema change schema defines the structure for recording modifications to | ||
| EXPRESS schema structure across versions, as described in <<syntax>>. | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| include::../schemas/schema_manifest.yaml[] | ||
| ---- | ||
|
|
||
| This schema can be used for validation by prefixing an EXPRESS Schema Manifest | ||
| YAML file with the following comment line: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| # yaml-language-server: $schema=https://www.expresslang.org/schemas/manifest/v1/schema_manifest.yaml | ||
| ---- | ||
|
|
||
| [example] | ||
| ==== | ||
| [source,yaml] | ||
| ---- | ||
| # yaml-language-server: $schema=https://www.expresslang.org/schemas/manifest/v1/schema_manifest.yaml | ||
| --- | ||
| schemas: | ||
| action_schema: | ||
| path: ./schemas/action_schema.exp | ||
| ---- | ||
| ==== |
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.
Uh oh!
There was an error while loading. Please reload this page.