Skip to content

Commit

Permalink
Added predefYearMonth to KebsJsonSchemaPredefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Głód committed Nov 17, 2023
1 parent 95cd869 commit 77abc9b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 77abc9b

Please sign in to comment.