Skip to content

Commit

Permalink
Allow shortcut specifying InlineScript as just a string
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Oct 8, 2024
1 parent 10027be commit c7b580a
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check failure on line 458 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 10 spaces
- type: object

Check failure on line 459 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 10 spaces
properties:

Check failure on line 460 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 14 spaces but found 12 spaces
lang:

Check failure on line 461 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 16 spaces but found 14 spaces
$ref: '#/components/schemas/ScriptLanguage'

Check failure on line 462 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 18 spaces but found 16 spaces
options:

Check failure on line 463 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 16 spaces but found 14 spaces
type: object

Check failure on line 464 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 18 spaces but found 16 spaces
additionalProperties:

Check failure on line 465 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 18 spaces but found 16 spaces
type: string

Check failure on line 466 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 20 spaces but found 18 spaces
source:

Check failure on line 467 in spec/schemas/_common.yaml

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 16 spaces but found 14 spaces
description: The script source.
type: string
source:
description: The script source.
type: string
required:
- source
required:
- source
ScriptLanguage:
type: string
enum:
Expand Down

0 comments on commit c7b580a

Please sign in to comment.