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

"additional properties 'subgraphs' not allowed" #1224

Closed
lambrosx77 opened this issue Sep 27, 2024 · 2 comments
Closed

"additional properties 'subgraphs' not allowed" #1224

lambrosx77 opened this issue Sep 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lambrosx77
Copy link

lambrosx77 commented Sep 27, 2024

Component(s)

router

Component version

wgc version

0.66.1

controlplane version

router version

v0.115.1

What happened?

Description

Steps to Reproduce

Expected Result

Actual Result

Environment information

Environment

OS: Windows 11
Package Manager: yarn

Router configuration

version: "1"
headers:
  all:
    request:
      - op: "propagate"
        matching: Authorization
subgraphs:
  - name: erm
    routing_url: http://localhost:9100/graphql
    schema:
      file: ./erm.graphql
  - name: aps
    routing_url: http://localhost:9101/graphql
    schema:
      file: ./aps.graphql

Router execution config

No response

Log output

PS C:\dev\servers\cosmo> wgc router compose -i config.yaml -o config.json
PS C:\dev\servers\cosmo> .\router.exe                                                                                                                                                                                                                                                                                        
2024/09/26 18:08:33 Could not load config{error 26 0  router config validation error: jsonschema validation failed with 'https://raw.githubusercontent.com/wundergraph/cosmo/main/router/pkg/config/config.schema.json#'
- at '': additional properties 'subgraphs' not allowed}

Additional context

Hi,

Since I updated wgc and routeur, I have this error and I don't know what could be wrong, everything seems to be like in the documentation.

It was working with old versions.

Thank you for the help.

@lambrosx77 lambrosx77 added the bug Something isn't working label Sep 27, 2024
Copy link

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible.
The roadmap is driven by our customers and we have to prioritize issues that are important to them.
You can influence the priority by becoming a customer. Please contact us here.

@Aenimus
Copy link
Member

Aenimus commented Sep 27, 2024

Hi @lambrosx77,

The compose YAML file that is passed to wgc router compose is different to the router configuration YAML file.

In short, the "compose YAML" file provides the instructions to produce a static router execution config JSON.

The "router configuration YAML" file provides configurations for the router (headers, cors, etc.).

I hope that helps!

@Aenimus Aenimus closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants