Skip to content

Commit

Permalink
extract custom metadata data type schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan committed Dec 13, 2023
1 parent 74275df commit 4fdbef0
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 33 deletions.
22 changes: 10 additions & 12 deletions doc/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,17 +712,7 @@
"type": "string"
},
"data_type": {
"type": "string",
"enum": [
"boolean",
"date",
"link",
"multi_select",
"number",
"single_select",
"string",
"text"
]
"$ref": "#/components/parameters/custom_metadata_data_type/schema"
},
"user": {
"$ref": "#/components/schemas/user_preview"
Expand Down Expand Up @@ -6219,12 +6209,20 @@
],
"name": "name",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/custom_metadata_data_type"
"name": "data_type",
"in": "query",
"description": "Data Type of Custom Metadata Property",
"required": true,
"schema": {
"$ref": "#/components/parameters/custom_metadata_data_type/schema"
},
"example": "boolean"
},
{
"description": "description of property",
Expand Down
11 changes: 1 addition & 10 deletions parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,7 @@ custom_metadata_data_type:
description: Data Type of Custom Metadata Property
required: false
schema:
type: string
enum:
- boolean
- date
- link
- multi_select
- number
- single_select
- string
- text
"$ref": "./schemas/custom_metadata_data_type.yaml#/data_type"
example: boolean
query_account_id:
in: query
Expand Down
9 changes: 8 additions & 1 deletion paths/custom_metadata_properties/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ parameters:
- Fruit
name: name
in: query
required: true
schema:
type: string
- "$ref": "../../parameters.yaml#/custom_metadata_data_type"
- name: data_type
in: query
description: Data Type of Custom Metadata Property
required: true
schema:
"$ref": "../../schemas/custom_metadata_data_type.yaml#/data_type"
example: boolean
- description: description of property
example:
- A healthy snack for all ages
Expand Down
11 changes: 11 additions & 0 deletions schemas/custom_metadata_data_type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
data_type:
type: string
enum:
- boolean
- date
- link
- multi_select
- number
- single_select
- string
- text
11 changes: 1 addition & 10 deletions schemas/custom_metadata_property.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@ custom_metadata_property:
description:
type: string
data_type:
type: string
enum:
- boolean
- date
- link
- multi_select
- number
- single_select
- string
- text
"$ref": "./custom_metadata_data_type.yaml#/data_type"
user:
"$ref": "./user_preview.yaml#/user_preview"
projects:
Expand Down

0 comments on commit 4fdbef0

Please sign in to comment.