From 77abc9b028ba91864aef78ca9520b90da5c2040a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20G=C5=82=C3=B3d?= Date: Fri, 17 Nov 2023 09:42:40 +0100 Subject: [PATCH] Added predefYearMonth to KebsJsonSchemaPredefs --- .../pl/iterators/kebs/jsonschema/KebsJsonSchemaPredefs.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsonschema/src/main/scala/pl/iterators/kebs/jsonschema/KebsJsonSchemaPredefs.scala b/jsonschema/src/main/scala/pl/iterators/kebs/jsonschema/KebsJsonSchemaPredefs.scala index 6c9f6b19..6683060d 100644 --- a/jsonschema/src/main/scala/pl/iterators/kebs/jsonschema/KebsJsonSchemaPredefs.scala +++ b/jsonschema/src/main/scala/pl/iterators/kebs/jsonschema/KebsJsonSchemaPredefs.scala @@ -3,11 +3,13 @@ package pl.iterators.kebs.jsonschema import json.schema.Predef import java.net.{URI, URL} -import java.time.ZonedDateTime +import java.time.{YearMonth, ZonedDateTime} trait KebsJsonSchemaPredefs { implicit val predefZonedDateTime: Predef[ZonedDateTime] = Predef(json.Schema.`string`[ZonedDateTime]) + implicit val predefYearMonth: Predef[YearMonth] = Predef(json.Schema.`string`[YearMonth]) + implicit val predefUrl: Predef[URL] = Predef(json.Schema.`string`[URL]) implicit val predefUri: Predef[URI] = Predef(json.Schema.`string`[URI])