Skip to content

nullable does not allow null as a value #39

@chasain

Description

@chasain

Using a paramater like:

config:
  site:
    ## @param config.site.version [string,nullable] Version of config archive
    ##
    version: null

gives a schema definition of:

  "version": {
      "type": "string",
      "description": "Only valid with source: Nexus. Version of config archive",
      "default": "null",
      "nullable": true
  },

which doesn't allow for actual null values.

config.site.version: Invalid type. Expected: string, given: null

if I manually change the schema to:

  "version": {
      "type": ["string", "null"],
      "description": "Only valid with source: Nexus. Version of config archive",
      "default": "null",
      "nullable": true
  },

then it seems to work correctly

Metadata

Metadata

Assignees

Labels

on-holdIssues that we need to work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions