Skip to content

Conversation

glours
Copy link
Collaborator

@glours glours commented May 7, 2025

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours requested a review from ndeloof as a code owner May 7, 2025 08:51
@glours glours self-assigned this May 7, 2025
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours force-pushed the fix-panic-issues branch from 6551d4a to 16f88fb Compare May 7, 2025 08:54
ref = v["service"].(string)
ref, ok = v["service"].(string)
if !ok {
return nil, fmt.Errorf("extends.%s.service is required", name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json schema already declares "required": ["service"], so why do we end up seing this?

@glours glours merged commit 70d014d into compose-spec:main May 7, 2025
8 checks passed
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.

Panic when using extends without specifying service
2 participants