Skip to content

Swagger documentation for Models #231

@Ashwin012

Description

@Ashwin012

Small error in Swagger documentation for Models.
The " are missing for the required fields.
The following file should be updated :

/vendor/infyomlabs/laravel-generator/src/Generators/ModelGenerator.php

Public function generateSwagger(...
...
$template = str_replace('$REQUIRED_FIELDS$', '"' . implode('"' . ', ' . '"', $this->generateRequiredFields()) . '"', $template);

Thanks for the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions