-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add properties to schema * Add `id` to property, and make property value of type string for easier model binding * Add bool to configure if additional (not specified) properties are allowed * Add properties to property (😀) as discussed in todays call * Add properties to topic PUT and POST models * Add required attributes * Rename property to custom_field * Add info about custom fields to README * Do not allow additional properties flag in extensions * Add id to field definition in extensions * Remove name property of custom field instance in topic * Add description to custom field object * Update README.md * Update README.md --------- Co-authored-by: Georg Dangl <[email protected]>
- Loading branch information
1 parent
74abd55
commit 84af26d
Showing
8 changed files
with
96 additions
and
0 deletions.
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
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,15 @@ | ||
{ | ||
"title": "custom_field", | ||
"type": ["object"], | ||
"properties": { | ||
"id": { | ||
"description": "Refers to the id of the custom field in the project extensions.", | ||
"required": false, | ||
"type": "string" | ||
}, | ||
"value": { | ||
"required": false, | ||
"type": "string" | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"title": "custom_fields", | ||
"type": ["array"], | ||
"items": { | ||
"$ref": "custom_field.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,9 @@ | |
"due_date": { | ||
"type": ["string", | ||
"null"] | ||
}, | ||
"custom_fields": { | ||
"$ref": "custom_fields.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 |
---|---|---|
|
@@ -59,6 +59,9 @@ | |
"due_date": { | ||
"type": ["string", | ||
"null"] | ||
}, | ||
"custom_fields": { | ||
"$ref": "custom_fields.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,35 @@ | ||
{ | ||
"title": "custom_field", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"required": true, | ||
"type": "string" | ||
}, | ||
"name": { | ||
"required": true, | ||
"type": "string" | ||
}, | ||
"type": { | ||
"required": true, | ||
"enum": ["integer", "decimal", "string", "boolean", "enum", "date", "date-time"] | ||
}, | ||
"readonly": { | ||
"required": true, | ||
"type": "boolean" | ||
}, | ||
"required": { | ||
"required": true, | ||
"type": "boolean" | ||
}, | ||
"defaultValue": { | ||
"type": "string" | ||
}, | ||
"enumValues": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} |
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