Closed JohanKarlbergg closed 11 months ago
Looks good.
I didn't know "dependentSchemas" thing! Nice
Suggestion:
Instead of combining can
and canfd
describe each type in a separate oneOf. This will make is easier to understand and maintain the schema. The will also fix the problem that dbaud_rate
is not allowed for canfd
Suggestion:
Instead of combining
can
andcanfd
describe each type in a separate oneOf. This will make is easier to understand and maintain the schema. The will also fix the problem thatdbaud_rate
is not allowed forcanfd
dbaud_rate
is only allowed for canfd
and it "works", since not required means that it is not allowed.
I will update to two individual oneofs
Added baud_rate/dbaud_rate to json schema
For
canfd
baud_rate and dbaud_rate are mutually optional/required. Forcan
you can only specify baud_rate