Skip to content

ReferenceOr<Schema> should probably return a result #2

@Troels51

Description

@Troels51

I switched to using your fork for an experiment because it already has "resolve" as a function on the References.
Most of them return a Result except for the one on ReferenceOr<Schema>, and it seems that it should too

pub fn resolve<'a>(&'a self, spec: &'a OpenAPI) -> &'a Schema {

vs

pub fn resolve<'a>(&'a self, spec: &'a OpenAPI) -> Result<&'a Parameter> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions