Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lints and docs #1457

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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