WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

The ability to configure resource loaders #85

@plenderyou

Description

@plenderyou

I have an issue when I'm trying to validate some raml with associated JSON schema. Inside the schema there is a reference ($ref) to another schema using an id, the id is an http url but it's not available publicly because of security concerns.

I'd like to be able to pre-register the id against a file which will avoid the network lookup.

In ajv for example you can add the -r flag to register a set of local schemas.

Even if the schemas were available publicly then there is an issue when creating the files as you'd have to publish them globally on change.

I know you piggy back on top of AMF which has the concept of ResourceLoaders where this can be done, but I see no way of introducing a custom ResourceLoader in the webapi-parser abstraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions