forked from finos/FDC3
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finos#128 - rename schema files and delete old examples
- Change schema file extensions - Change schema $id property to use correct target URI (without version, but "next" instead) - Change "enum" for "type" to be "const", which is the more correct JSON schema usage - Some changes to some types to bring in line with FinObj types
- Loading branch information
Showing
17 changed files
with
24 additions
and
123 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
src/context/schemas/contact.schema → src/context/schemas/contact.schema.json
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
6 changes: 3 additions & 3 deletions
6
src/context/schemas/contactList.schema → src/context/schemas/contactList.schema.json
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
2 changes: 1 addition & 1 deletion
2
src/context/schemas/context.schema → src/context/schemas/context.schema.json
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
4 changes: 2 additions & 2 deletions
4
src/context/schemas/instrument.schema → src/context/schemas/instrument.schema.json
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
4 changes: 2 additions & 2 deletions
4
src/context/schemas/instrumentList.schema → ...ontext/schemas/instrumentList.schema.json
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
8 changes: 4 additions & 4 deletions
8
src/context/schemas/organization.schema → src/context/schemas/organization.schema.json
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://fdc3.finos.org/schemas/1.0/organization.schema", | ||
"$id": "https://fdc3.finos.org/schemas/next/organization.schema", | ||
"type": "object", | ||
"allOf": [{ "$ref": "context.schema#/" }], | ||
"properties": { | ||
"type": { "enum": ["fdc3.organization"] }, | ||
"type": { "const": "fdc3.organization" }, | ||
"id": { | ||
"type": "object", | ||
"properties": { | ||
"LEI": { "type": "string" }, | ||
"PERMID": { "type": "string" }, | ||
"FDSID": { "type": "string" } | ||
"FDS_ID": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"required": ["id","name"] | ||
"required": ["id"] | ||
} |
4 changes: 2 additions & 2 deletions
4
src/context/schemas/portfolio.schema → src/context/schemas/portfolio.schema.json
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
6 changes: 3 additions & 3 deletions
6
src/context/schemas/position.schema → src/context/schemas/position.schema.json
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://fdc3.finos.org/schemas/1.0/position.schema", | ||
"$id": "https://fdc3.finos.org/schemas/next/position.schema", | ||
"type": "object", | ||
"allOf": [{ "$ref": "context.schema#/" }], | ||
"properties": { | ||
"type": { "enum": ["fdc3.position"] }, | ||
"type": { "const": "fdc3.position" }, | ||
"instrument": { "$ref": "instrument.schema#/" }, | ||
"holding": { "type": "number", "minimum": 0 } | ||
}, | ||
"required": ["instrument", "holding"] | ||
"required": ["instrument"] | ||
} |