Skip to content

support empty schema #295

Open
Open
@gabrieljones

Description

@gabrieljones

In JSON Schema, an empty object is a completely valid schema that will accept any valid JSON.
https://json-schema.org/understanding-json-schema/basics.html#id1

You can also use true in place of the empty object to represent a schema that matches anything, or false for a schema that matches nothing.

import com.typesafe.config.ConfigValue

  implicit val configValueSchema: json.schema.Predef[ConfigValue] =
    json.schema.Predef(json.Schema.`empty`[ConfigValue]

Or maybe call it anything?

Expected Output:

{ }

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions