diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 471d2209..67f9d870 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -451,21 +451,24 @@ components: - title: stored $ref: '#/components/schemas/StoredScriptId' InlineScript: - allOf: - - $ref: '#/components/schemas/ScriptBase' - - type: object - properties: - lang: - $ref: '#/components/schemas/ScriptLanguage' - options: - type: object - additionalProperties: + oneOf: + - title: source + type: string + - allOf: + - $ref: '#/components/schemas/ScriptBase' + - type: object + properties: + lang: + $ref: '#/components/schemas/ScriptLanguage' + options: + type: object + additionalProperties: + type: string + source: + description: The script source. type: string - source: - description: The script source. - type: string - required: - - source + required: + - source ScriptLanguage: type: string enum: