Skip to content

Commit

Permalink
Fix lints and docs (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 18, 2024
1 parent 396ef69 commit 37b2a65
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions json_serializable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ enum StatusCodeEnhanced {
# Supported types

Out of the box, `json_serializable` supports many common types in the
[dart:core](https://api.dart.dev/stable/dart-core/dart-core-library.html)
[dart:core](https://api.dart.dev/dart-core/dart-core-library.html)
library:
[`BigInt`], [`bool`], [`DateTime`], [`double`], [`Duration`], [`Enum`], [`int`],
[`Iterable`], [`List`], [`Map`], [`num`], [`Object`], [`Record`], [`Set`],
Expand Down Expand Up @@ -290,14 +290,14 @@ targets:
[example]: https://github.com/google/json_serializable.dart/tree/master/example
[dart build system]: https://github.com/dart-lang/build
[package:json_annotation]: https://pub.dev/packages/json_annotation
[`BigInt`]: https://api.dart.dev/stable/dart-core/BigInt-class.html
[`bool`]: https://api.dart.dev/stable/dart-core/bool-class.html
[`DateTime`]: https://api.dart.dev/stable/dart-core/DateTime-class.html
[`double`]: https://api.dart.dev/stable/dart-core/double-class.html
[`Duration`]: https://api.dart.dev/stable/dart-core/Duration-class.html
[`Enum`]: https://api.dart.dev/stable/dart-core/Enum-class.html
[`int`]: https://api.dart.dev/stable/dart-core/int-class.html
[`Iterable`]: https://api.dart.dev/stable/dart-core/Iterable-class.html
[`BigInt`]: https://api.dart.dev/dart-core/BigInt-class.html
[`bool`]: https://api.dart.dev/dart-core/bool-class.html
[`DateTime`]: https://api.dart.dev/dart-core/DateTime-class.html
[`double`]: https://api.dart.dev/dart-core/double-class.html
[`Duration`]: https://api.dart.dev/dart-core/Duration-class.html
[`Enum`]: https://api.dart.dev/dart-core/Enum-class.html
[`int`]: https://api.dart.dev/dart-core/int-class.html
[`Iterable`]: https://api.dart.dev/dart-core/Iterable-class.html
[`JsonConverter`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html
[`JsonEnum.valueField`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonEnum/valueField.html
[`JsonEnum`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonEnum-class.html
Expand All @@ -307,11 +307,11 @@ targets:
[`JsonLiteral`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonLiteral-class.html
[`JsonSerializable`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonSerializable-class.html
[`JsonValue`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonValue-class.html
[`List`]: https://api.dart.dev/stable/dart-core/List-class.html
[`Map`]: https://api.dart.dev/stable/dart-core/Map-class.html
[`num`]: https://api.dart.dev/stable/dart-core/num-class.html
[`Object`]: https://api.dart.dev/stable/dart-core/Object-class.html
[`Record`]: https://api.dart.dev/stable/dart-core/Record-class.html
[`Set`]: https://api.dart.dev/stable/dart-core/Set-class.html
[`String`]: https://api.dart.dev/stable/dart-core/String-class.html
[`Uri`]: https://api.dart.dev/stable/dart-core/Uri-class.html
[`List`]: https://api.dart.dev/dart-core/List-class.html
[`Map`]: https://api.dart.dev/dart-core/Map-class.html
[`num`]: https://api.dart.dev/dart-core/num-class.html
[`Object`]: https://api.dart.dev/dart-core/Object-class.html
[`Record`]: https://api.dart.dev/dart-core/Record-class.html
[`Set`]: https://api.dart.dev/dart-core/Set-class.html
[`String`]: https://api.dart.dev/dart-core/String-class.html
[`Uri`]: https://api.dart.dev/dart-core/Uri-class.html
2 changes: 1 addition & 1 deletion json_serializable/tool/readme/readme_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ serialized value.
# Supported types

Out of the box, `json_serializable` supports many common types in the
[dart:core](https://api.dart.dev/stable/dart-core/dart-core-library.html)
[dart:core](https://api.dart.dev/dart-core/dart-core-library.html)
library:
<!-- REPLACE supported_types -->

Expand Down
2 changes: 1 addition & 1 deletion json_serializable/tool/readme_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const _templatePath = 'tool/readme/readme_template.md';
const _readmePath = 'README.md';

String _coreTypeUri(String type) =>
'https://api.dart.dev/stable/dart-core/$type-class.html';
'https://api.dart.dev/dart-core/$type-class.html';

String _classCleanAndSort(Iterable<String> classes) {
final initial = (classes.map((e) => e == customEnumType ? 'Enum' : e).toList()
Expand Down

0 comments on commit 37b2a65

Please sign in to comment.