Skip to content

[Feature]: validate without calling the schema server #140

@csirmazbendeguz

Description

@csirmazbendeguz

Problem Statement

I noticed that the ValidateRecord function calls the schema server:

resp, err := v.httpClient.Do(req)

My issue with this is now our tests in dir depend on the schema server because of this

Proposed Solution

I understand it's easier to implement it this way because there's less duplication. But would it be possible to implement the validation in the code instead?

Alternatives Considered

No response

Additional Context

I'm not saying this is a huge issue, but I think validation should be done without calling any external services. I was surprised to learn that's not the case

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions