Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support empty schema #295

Open
gabrieljones opened this issue Jan 17, 2023 · 0 comments
Open

support empty schema #295

gabrieljones opened this issue Jan 17, 2023 · 0 comments
Assignees

Comments

@gabrieljones
Copy link

gabrieljones commented Jan 17, 2023

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:

{ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants