From 09a388552895561200712315d1107e6f34565fc2 Mon Sep 17 00:00:00 2001 From: Bryce Lewis Date: Fri, 7 Mar 2025 14:20:12 -0800 Subject: [PATCH] integration definition field --- .../integrations/IntegrationDefinition.yml | 28 ++----------------- .../IntegrationDefinitionField.yml | 27 ++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 components/schemas/hubs/integrations/IntegrationDefinitionField.yml diff --git a/components/schemas/hubs/integrations/IntegrationDefinition.yml b/components/schemas/hubs/integrations/IntegrationDefinition.yml index 5aff2018..21f33577 100644 --- a/components/schemas/hubs/integrations/IntegrationDefinition.yml +++ b/components/schemas/hubs/integrations/IntegrationDefinition.yml @@ -65,37 +65,13 @@ properties: - object - "null" additionalProperties: - type: object - required: - - description - - required - properties: - regex: - type: - - string - - "null" - required: - type: boolean - description: - type: string + $ref: ./IntegrationDefinitionField.yml auth: type: - object - "null" additionalProperties: - type: object - required: - - description - - required - properties: - regex: - type: - - string - - "null" - required: - type: boolean - description: - type: string + $ref: ./IntegrationDefinitionField.yml url: type: string format: uri diff --git a/components/schemas/hubs/integrations/IntegrationDefinitionField.yml b/components/schemas/hubs/integrations/IntegrationDefinitionField.yml new file mode 100644 index 00000000..33d78ebe --- /dev/null +++ b/components/schemas/hubs/integrations/IntegrationDefinitionField.yml @@ -0,0 +1,27 @@ +title: IntegrationDefinitionField +type: object +required: + - description + - required +properties: + regex: + type: + - string + - "null" + required: + type: boolean + description: + type: string + type: + type: string + enum: + - "select" + - "string" + - "int" + - "blob" + options: + oneOf: + - type: array + items: + type: string + - type: "null"