-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schema for data extension property proposal responses (#119)
* Add schema for data extension property proposal responses. Closes #118. * Fix typo Co-authored-by: Fabian Steeg <[email protected]> --------- Co-authored-by: Fabian Steeg <[email protected]>
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
draft/examples/data-extension-property-proposal/invalid/missing-properties.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"limit": 5, | ||
"type": "DifferentiatedPerson" | ||
} |
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,43 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"$id": "https://reconciliation-api.github.io/specs/draft/schemas/data-extension-property-proposal.json", | ||
"type": "object", | ||
"description": "This schema can be used to validate the JSON response of a property proposal endpoint (part of the data extension feature).", | ||
"properties": { | ||
"properties": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Identifier of the suggested property" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the suggested property" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "An optional description which can be provided to disambiguate namesakes, providing more context." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"name" | ||
] | ||
} | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "The identifier of the type for which those properties are suggested" | ||
}, | ||
"limit": { | ||
"type": "number", | ||
"description": "The maximum number of results requested." | ||
} | ||
}, | ||
"required": [ | ||
"properties" | ||
] | ||
} |