Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeiffer committed Nov 16, 2023
1 parent 4820d86 commit 0f91161
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
42 changes: 19 additions & 23 deletions bin/process_schemas.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,29 @@ void main(List<String> args) {
'https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_dynamic_widget/json_widget_data.json') {
dataSchema = file;
} else {
if (children == null) {
print('[OBJECT]: $type');
} else {
print('[WIDGET]: $type');
schemas[id] = schema;
oneOf.add(
{
'type': 'object',
'additionalProperties': false,
print('[WIDGET]: $type');
schemas[id] = schema;
oneOf.add(
{
'type': 'object',
'additionalProperties': false,
'properties': {
...properties,
if (children == 1) 'child': child,
if (children == -1) 'children': children,
'properties': {
...properties,
if (children == 1) 'child': child,
if (children == -1) 'children': children,
'properties': {
'args': {
r'$ref': id,
},
'type': {
'type': 'string',
'const': type.substring(0, type.indexOf('.')),
},
'args': {
r'$ref': id,
},
'type': {
'type': 'string',
'const': type.substring(0, type.indexOf('.')),
},
},
},
);
}
}
},
);
}
}
oneOf.add({
'type': 'object',
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:

dependencies:
json_class: '^3.0.0'
yaon: '^1.1.0'
yaon: '^1.1.4'

dev_dependencies:
flutter_lints: '^2.0.1'
Expand Down Expand Up @@ -38,5 +38,6 @@ ignore_updates:
- 'term_glyph'
- 'test_api'
- 'typed_data'
- 'uuid'
- 'vector_math'
- 'webdriver'

0 comments on commit 0f91161

Please sign in to comment.