From 9fc108ed534e1f8d717b036eb951756d6991b8d6 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Sun, 17 Nov 2024 19:58:45 -0600 Subject: [PATCH] Fix lints and docs --- json_serializable/README.md | 34 +++++++++---------- .../tool/readme/readme_template.md | 2 +- json_serializable/tool/readme_builder.dart | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/json_serializable/README.md b/json_serializable/README.md index 5d30efd1..713ff4c1 100644 --- a/json_serializable/README.md +++ b/json_serializable/README.md @@ -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`], @@ -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 @@ -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 diff --git a/json_serializable/tool/readme/readme_template.md b/json_serializable/tool/readme/readme_template.md index c3d6815a..adba60f1 100644 --- a/json_serializable/tool/readme/readme_template.md +++ b/json_serializable/tool/readme/readme_template.md @@ -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: diff --git a/json_serializable/tool/readme_builder.dart b/json_serializable/tool/readme_builder.dart index cd832eab..4daf44ae 100644 --- a/json_serializable/tool/readme_builder.dart +++ b/json_serializable/tool/readme_builder.dart @@ -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 classes) { final initial = (classes.map((e) => e == customEnumType ? 'Enum' : e).toList()