Skip to content

nullable + allOf does this work? #333

@bgoesswe

Description

@bgoesswe

This is not an urgent issue, but just to have this documented:

I recently came to an issue regarding the GET /process_graphs/{process_graph_id} endpoint and the used response schema *user_defined_process_meta` using the openEO validator:

user_defined_process_meta:
      title: User-defined Process Metadata
      description: A user-defined process, may only contain metadata and no process graph.
      type: object
      required:
        - id
      properties:
        summary:
          nullable: true
        description:
          nullable: true
        parameters:
          nullable: true
        returns:
          nullable: true
      allOf:
        - $ref: '#/components/schemas/process'

Since description and summary is not nullable in the '#/components/schemas/process schema, the validator does not take the nullable: true in the properties into account and assumes that it is not nullable. I am actually not sure what happens if the properties and the properties in an allOf reference are named the same, but I found a very long issue at the OpenAPI Github page regarding the nullable issue and also some similar issues from other projects.

Even after reading these issues, I am not completely sure if the validator or the API is wrong here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugno solution yetThere is no solution yet, but might be considered later: follow-uppatchrequires a patch-version (x.x.1 for example)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions