You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation is not clear about this quirk, but I think it should be possible to compile this definition:
definition ClassName
title ClassName
property string type
enum ClassName
property int meaningOfLifeTheUniverseAndEverything
enum 42
where enum ClassName defines the only possible value for type property, and enum 42 is the only allowed value for meaningOfLifeTheUniverseAndEverything.
Meanwhile Schema forwards handleCommand to ObjectType and that does not accept subcommands for current property being processed. While it's possible to define fixed value for string properties using property enum(ClassName) type, I don't see any way to define fixed value for integer properties (and other types).
The text was updated successfully, but these errors were encountered:
Documentation is not clear about this quirk, but I think it should be possible to compile this definition:
where
enum ClassName
defines the only possible value fortype
property, andenum 42
is the only allowed value formeaningOfLifeTheUniverseAndEverything
.Meanwhile
Schema
forwardshandleCommand
toObjectType
and that does not accept subcommands for current property being processed. While it's possible to define fixed value for string properties usingproperty enum(ClassName) type
, I don't see any way to define fixed value for integer properties (and other types).The text was updated successfully, but these errors were encountered: