Skip to content

Should formatIs ranker support null types? #1804

Closed
@alastair-todd

Description

@alastair-todd

Describe the bug

export const formatIs = (expectedFormat: string): Tester =>
  schemaMatches(
    schema =>
      !isEmpty(schema) &&
      schema.format === expectedFormat &&
      schema.type === 'string'
  );

Expected behavior

Should support nulls

type: ['string', 'null']

Steps to reproduce the issue

N/A

Screenshots

No response

In which browser are you experiencing the issue?

N/A

Framework

Core

RendererSet

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions