Skip to content

[pull] master from SchemaStore:master - #625

Merged
pull[bot] merged 2 commits into
Uncodedtech:masterfrom
SchemaStore:master
Sep 5, 2026
Merged

[pull] master from SchemaStore:master#625
pull[bot] merged 2 commits into
Uncodedtech:masterfrom
SchemaStore:master

Conversation

@pull

@pull pull Bot commented Sep 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

TWiStErRob and others added 2 commits September 4, 2026 16:03
* AI(gpt-5.6-sol): Add action output dispatch regression tests

Each fixture was added individually on top of master, then tested with:

    node ./cli.js check --schema-name=github-action.json

`outputs-empty.json`:

    >> Failed to validate file "src/test/github-action/outputs-empty.json" against schema file "./src/schemas/json/github-action.json"
    >> Showing first error out of 1 total error(s)
    {
      instancePath: '/outputs',
      schemaPath: '#/properties/outputs/oneOf',
      keyword: 'oneOf',
      params: { passingSchemas: [ 0, 1 ] },
      message: 'must match exactly one schema in oneOf'
    }

`output-id-runs.json`:

    >> Failed to validate file "src/test/github-action/output-id-runs.json" against schema file "./src/schemas/json/github-action.json"
    >> Showing first error out of 3 total error(s)
    {
      instancePath: '/outputs',
      schemaPath: '#/definitions/outputs-composite/dependencies/runs/required',
      keyword: 'required',
      params: { missingProperty: 'using' },
      message: "must have required property 'using'"
    }

`javascript-output-with-value.json`:

    >> Schema validation succeeded for test file "./src/negative_test/github-action/javascript-output-with-value.json", but was supposed to fail
    >> For schema "./src/schemas/json/github-action.json"

`composite-output-missing-value.json`:

    >> Schema validation succeeded for test file "./src/negative_test/github-action/composite-output-missing-value.json", but was supposed to fail
    >> For schema "./src/schemas/json/github-action.json"

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* AI(gpt-5.6-sol): Restore action output schema dispatch

The strict-validation rewrite moved runtime-dependent output selection into
`dependencies` nested under each output definition. At that level, `runs`
means an output identifier rather than the top-level action runtime, so the
schema cannot distinguish composite outputs from JavaScript or Docker outputs.

Restore top-level `if` / `then` / `else` dispatch based on `runs.using`. Keep
the placeholder `outputs` property required by draft-07
`additionalProperties: false`, and declare the nested `runs` condition as an
object so AJV strict type validation still passes.

This makes empty output maps and output IDs named `runs` valid again, rejects
JavaScript outputs containing composite-only `value`, and requires `value` for
composite outputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Strict validation made `workflow_call` object-only even though GitHub accepts
the empty YAML trigger form. Model it using the existing object-or-null event
style and cover the shorthand in the null-event fixture.

Fixes #6303

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Sep 5, 2026
@pull pull Bot added the ⤵️ pull label Sep 5, 2026
@pull
pull Bot merged commit 419edef into Uncodedtech:master Sep 5, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant