Skip to content

🐛 Fix serialization of missing values#4939

Open
DRSchlaubi wants to merge 1 commit into
Traewelling:developfrom
DRSchlaubi:hotfix/operator-resource-serialization
Open

🐛 Fix serialization of missing values#4939
DRSchlaubi wants to merge 1 commit into
Traewelling:developfrom
DRSchlaubi:hotfix/operator-resource-serialization

Conversation

@DRSchlaubi

@DRSchlaubi DRSchlaubi commented Jul 5, 2026

Copy link
Copy Markdown
Member

'identifier' => $this->when( // @deprecated: remove after 2026-09
$this->relationLoaded('identifiers'),
fn () => $this->identifiers->firstWhere('type', 'hafas')?->identifier
),
'name' => $this->name,
'identifiers' => $this->whenLoaded('identifiers', fn () => OperatorIdentifierResource::collection($this->identifiers)),

Some functions like when returned MissingValue directly causing invalid json being rendered

image

#HSFDPMUW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant