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

Validate style after build #4

Closed
miya0001 opened this issue Sep 28, 2021 · 1 comment
Closed

Validate style after build #4

miya0001 opened this issue Sep 28, 2021 · 1 comment

Comments

@miya0001
Copy link
Contributor

See:
https://www.npmjs.com/package/@maplibre/maplibre-gl-style-spec?activeTab=readme

@miya0001
Copy link
Contributor Author

I tried like following.

const styleSpec = require('@maplibre/maplibre-gl-style-spec')

const result = styleSpec.validate(style)
console.log(result)

Then we can see:

[
  ValidationError {
    message: 'missing required property "sources"',
    line: 1
  },
  ValidationError {
    message: 'missing required property "layers"',
    line: 1
  }
]

@miya0001 miya0001 closed this as completed Oct 3, 2021
ubukawa added a commit that referenced this issue Dec 19, 2021
docs: add ubukawa as a contributor for design
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

No branches or pull requests

1 participant