Skip to content
Permalink
Browse files

Fix enums, v2.7

  • Loading branch information...
RSuter committed Feb 27, 2019
1 parent 4447413 commit 07ee8784d8d8c6583cf6d64255ea1d2855f9346f
@@ -107,7 +107,7 @@
<TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="0,0,0,4" />
<TextBlock Text="{Binding Schema.Description}" Margin="0,0,0,4"
Visibility="{Binding Schema.Description, Converter={StaticResource VisibilityConverter}}" />
<ComboBox Margin="0,0,0,8" ItemsSource="{Binding Schema.ActualPropertySchema.Enumeration}"
<ComboBox Margin="0,0,0,8" ItemsSource="{Binding Schema.ActualSchema.Enumeration}"
SelectedValue="{Binding Value, Mode=TwoWay}" />
</StackPanel>
</DataTemplate>
@@ -18,4 +18,4 @@
ResourceDictionaryLocation.SourceAssembly
)]

[assembly: AssemblyVersion("2.6.*")]
[assembly: AssemblyVersion("2.7.*")]
@@ -1,26 +1,27 @@
{
"StringValue": "a",
"BoolValue": false,
"NumberValue": 2.3,
"DateTimeValue": "2014-08-13T21:00:00",
"DateValue": "2014-08-14",
"TimeValue": "02:00:00",
"IntegerValue": 1,
"Test": {
"Abc": "e",
"Def": "d",
"Geh": "d"
"StringValue": "a",
"BoolValue": false,
"NumberValue": 2.3,
"DateTimeValue": "2014-08-13T21:00:00",
"DateValue": "2014-08-14",
"TimeValue": "02:00:00",
"EnumValue": "two",
"IntegerValue": 1,
"Test": {
"Abc": "e",
"Def": "d",
"Geh": "d"
},
"List": [
{
"Abc": "a",
"Def": "b",
"Geh": "c"
},
"List": [
{
"Abc": "a",
"Def": "b",
"Geh": "c"
},
{
"Abc": "",
"Def": "b",
"Geh": "c"
}
]
{
"Abc": "",
"Def": "b",
"Geh": "c"
}
]
}
@@ -1,81 +1,86 @@
{
"type": "object",
"title": "Person",
"required": [
"StringValue",
"BoolValue",
"NumberValue",
"DateTimeValue",
"DateValue",
"TimeValue",
"IntegerValue",
"Test",
"List"
],
"properties": {
"StringValue": {
"type": "string",
"default": "n/a"
},
"BoolValue": {
"type": "boolean"
},
"NumberValue": {
"type": "number",
"minimum": -1
},
"DateTimeValue": {
"type": "string",
"format": "date-time"
"type": "object",
"title": "Person",
"required": [
"StringValue",
"BoolValue",
"NumberValue",
"DateTimeValue",
"DateValue",
"TimeValue",
"IntegerValue",
"Test",
"List"
],
"properties": {
"StringValue": {
"type": "string",
"default": "n/a"
},
"BoolValue": {
"type": "boolean"
},
"NumberValue": {
"type": "number",
"minimum": -1
},
"DateTimeValue": {
"type": "string",
"format": "date-time"
},
"DateValue": {
"type": "string",
"format": "date"
},
"TimeValue": {
"type": "string",
"format": "time"
},
"IntegerValue": {
"type": "integer",
"minimum": 0
},
"EnumValue": {
"type": "string",
"enum": [ "one", "two", "three" ],
"x-enumNames": ["One", "Two", "Three"]
},
"Test": {
"type": "object",
"required": [
"Abc",
"Def",
"Geh"
],
"properties": {
"Abc": {
"type": "string"
},
"DateValue": {
"type": "string",
"format": "date"
"Def": {
"type": "string"
},
"TimeValue": {
"Geh": {
"type": "string"
}
}
},
"List": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Abc": {
"type": "string",
"format": "time"
},
"IntegerValue": {
"type": "integer",
"minimum": 0
},
"Test": {
"type": "object",
"required": [
"Abc",
"Def",
"Geh"
],
"properties": {
"Abc": {
"type": "string"
},
"Def": {
"type": "string"
},
"Geh": {
"type": "string"
}
}
},
"List": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Abc": {
"type": "string",
"minLength": 1
},
"Def": {
"type": "string"
},
"Geh": {
"type": "string"
}
}
}
"minLength": 1
},
"Def": {
"type": "string"
},
"Geh": {
"type": "string"
}
}
}
}
}
}

0 comments on commit 07ee878

Please sign in to comment.
You can’t perform that action at this time.