Skip to content

Do we really want to allow qualifying array elements INSIDE an input/output occurrence? #564

@jerstlouis

Description

@jerstlouis

@pvretano

There was this change made in Core where valueNoObject.yaml now takes:

  - type: array
    items:
      oneOf:
        - $ref: "inputValue.yaml"
        - $ref: "qualifiedValue.yaml"

instead of (old valueNoObject.yaml):

  - type: array
    items: { }

Why? Would you know which issue number discussed this, if any?

Sorry I was not able to follow all the discussions with everything going on.

The way that input.yaml is structured, it already does:

oneOf: 
  - $ref: "inlineOrRefValue.yaml" 
  - type: array 
    items: 
      $ref: "inlineOrRefValue.yaml" 

So this is what accounts for the multiplicity and qualification of the input values.

So what you would have in inlineOrRefValue.yaml is the input value (individual occurrence) itself.
What this change does now is let you "qualify" things INSIDE the input value (individual occurrence, and in a recursively nested fashion), clashing with the specified JSON Schema in the process description.
This change does not seem right to me.
Before, that generic array was whatever array described in the process description... It's not an input that should be qualifiable or including valueNoObject.yaml again...
That might have something to do with the deep recursion that was breaking the older Swagger UI (I had to migrate to the newer version to get over these errors).

cc. @fmigneault @gfenoy @bpross-52n

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.0Next development iterationPart 1 (Core)OGC API - Processes - Part 1: Core

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions