Skip to content

Commit 134f221

Browse files
committed
#124: updated changelog + readme
1 parent 201823e commit 134f221

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Changelog
2+
## [6.4.0] - 2023-08-14
3+
*BREAKING CHANGE*: Every type is now defined inline, this means that 'required' is no longer supported, if a field isn't nullable it is automatically required. This also means that the 'array' type is no longer supported and is instead just defined like 'List<T>'.
4+
25
## [6.3.0] - 2023-06-05
36
- Fixed the deprecated `ignore` field. Added
4-
```
7+
```yaml
58
includeFromJson: false
69
includeToJson: false
710
```

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,32 @@ UserModel:
378378
roles: List<string>
379379
customProperties: Map<String, Property>?
380380
```
381+
since 6.4.0 inline types are supported now even when adding extra configuration:
382+
383+
before:
384+
```yaml
385+
BookCase:
386+
path: webservice/BookCases
387+
properties:
388+
id: int
389+
books:
390+
type: array
391+
items:
392+
type: Book
393+
required: false
394+
include_if_null: false
395+
```
396+
397+
now:
398+
```yaml
399+
BookCase:
400+
path: webservice/BookCases
401+
properties:
402+
id: int
403+
books:
404+
type: List<Book>
405+
include_if_null: false
406+
```
381407

382408
Currently all basic types are supported, simple Lists and Maps (no nested types, no nullable generic parameters) as well as references to other objects.
383409
Items post-fixed with `?` will be marked optional.

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: model_generator
22
description: Dart tool to automatically generate models from a yml file to speed up your development flow.
3-
version: 6.3.0
3+
version: 6.4.0
44
homepage: https://github.com/icapps/flutter-model-generator
55

66
environment:

0 commit comments

Comments
 (0)