cypress-io / schema-tools

Validate, sanitize and document JSON schemas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we sanitize arrays that can be null

bahmutov opened this issue ยท comments

For example if parent schema includes a property which is array, null

screenshots: {
        type: ['array', 'null'],
        items: {
          ...Screenshot100.schema,
        },
        see: Screenshot100.schema.title,
      },

does it sanitize the screenshots correctly?
Seems it can only sanitize arrays if the are type: 'array'

๐ŸŽ‰ This issue has been resolved in version 1.8.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€