Skip to content

Admin endpoint for mocks creation should return 400 if the input is not valid #80

@zhouzhuojie

Description

@zhouzhuojie

I think a few functions may need to bubble up the errors so that we can prevent invalid input early on. Incidents like an invalid yaml input could potentially crash the openmock server and may need manual interaction from the redis server.

func swaggerToOpenmockMock(swagger model.Mock) (om openmock.Mock) {

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