question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema validation for webauthn-roaming in guardianFactors

See original GitHub issue

Using version 5.3.0 I exported YAML from our tenants and it added the following under guardianFactors:

guardianFactors:
    :
  - name: webauthn-roaming
    enabled: false

Yet when I try to import that back into I receive a schema validation error

2020-11-10T23:54:36.039Z - error: Problem running command import
2020-11-10T23:54:36.040Z - error: Schema validation failed loading [
    {
        "keyword": "enum",
        "dataPath": ".guardianFactors[5].name",
        "schemaPath": "#/properties/guardianFactors/items/properties/name/enum",
        "params": {
            "allowedValues": [
                "sms",
                "push-notification",
                "otp",
                "email",
                "duo"
            ]
        },
        "message": "should be equal to one of the allowed values"
    }
]

If I remove the new webauthn-roaming setting it imports succesfully.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tyroneerasmuscommented, Jan 13, 2021

Ignore me, looks like this was resolved in v5.4.0

0reactions
rodrigoreis22commented, Aug 13, 2021

I’m seeing this error on v5.5.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auth0-deploy-cli Bad Request: 'Invalid domain (.xxx & .yyy ...
... up Schema validation for webauthn-roaming in guardianFactors · Issue ... back in that pattern, but while importing it fails validation.
Read more >
Schema Validation on Confluent Server
Schema Validation enables the broker to verify that data produced to a Kafka topic is using a valid schema ID in Schema Registry...
Read more >
A Vocabulary for Structural Validation of JSON - JSON Schema
This document specifies a vocabulary for JSON Schema to describe the ... JSON Schema validation asserts constraints on the structure of instance data....
Read more >
draft-handrews-json-schema-validation-01 - IETF Datatracker
JSON Schema Validation: A Vocabulary for Structural Validation of JSON (Internet-Draft, 2018)
Read more >
Schema Validation — MongoDB Manual
Schema validation lets you create validation rules for your fields, such as allowed data types and value ranges. MongoDB uses a flexible schema...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found