[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] JSON Schema Mapping property now works as expected
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [PATCH] JSON Schema Mapping property now works as expected |
Date: |
Sat, 3 Apr 2021 15:06:09 +0430 |
Hi, Jose.
On Sat, Apr 03, 2021 at 12:25:19PM +0200, Jose E. Marchesi wrote:
>
> Hi Kostas.
>
> > Recently we had a discussion with Mohammad on IRC about "Mapping" object
> > on the JSON Schema.
> >
> > We had an issue the following issue.
> >
> > Suppose "mapped" was false (which means the object is not mapped), then
> > "IOS", "strict" and "offset" did not need to be defined so the only truly
> > "required" field was "mapped".
>
> I don't agree with that premise.
>
> Composite PVM values can be mapped or not.
> They also have attributes IOS/strict/offset.
>
> These are orthogonal: IOS, strict and offset can (and are) set
> independently of the value being mapped or not.
>
> Consequently I would say the JSON should require the user to provide all
> of these fields...
This decision was my "temporary hack" to finish my JSON patches :)
I explained The Right Way in an earlier email.