Skip to content

Commit

Permalink
fix(cat-voices): allow optional title in document properties/sections (
Browse files Browse the repository at this point in the history
…#1460)

* fix: make document property title optional

* fix: make document section title optional

* fix: make title optional
  • Loading branch information
dtscalac authored Jan 3, 2025
1 parent 6b25bd9 commit 1f4810f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class DocumentSchemaSection extends Equatable implements DocumentNode {
@override
final DocumentNodeId nodeId;
final String id;
final String title;
final String? title;
final String? description;
final List<DocumentSchemaProperty> properties;
final bool isRequired;
Expand Down Expand Up @@ -114,7 +114,7 @@ final class DocumentSchemaProperty extends Equatable implements DocumentNode {
@override
final DocumentNodeId nodeId;
final String id;
final String title;
final String? title;
final String? description;
final Object? defaultValue;
final String? guidance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class DocumentSchemaPropertyDto {
final String ref;
@JsonKey(includeToJson: false)
final String id;
final String title;
final String? title;
final String? description;
@JsonKey(includeIfNull: false)
final int? minLength;
Expand Down Expand Up @@ -38,7 +38,7 @@ final class DocumentSchemaPropertyDto {
const DocumentSchemaPropertyDto({
this.ref = '',
required this.id,
required this.title,
this.title,
this.description,
this.minLength,
this.maxLength,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class DocumentSchemaSectionDto {
final String id;
@JsonKey(name: r'$ref')
final String ref;
final String title;
final String? title;
final String? description;
@DocumentSchemaPropertiesDtoConverter()
final List<DocumentSchemaPropertyDto> properties;
Expand All @@ -22,7 +22,7 @@ final class DocumentSchemaSectionDto {
const DocumentSchemaSectionDto({
required this.id,
required this.ref,
required this.title,
this.title,
this.description,
required this.properties,
this.required,
Expand Down

0 comments on commit 1f4810f

Please sign in to comment.