Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignore files #11

Merged
merged 3 commits into from
Oct 9, 2023
Merged

Fix ignore files #11

merged 3 commits into from
Oct 9, 2023

Conversation

filippovano
Copy link
Contributor

@filippovano filippovano commented Oct 8, 2023

Выдернул из https://github.com/ensi-platform/laravel-openapi-client-generator/pull/1/files#diff-a3459fcbd854e0a7ff7651a3b089468582fd325a63438f9fda09be47ebbe21f4 код необходимый для игнорирования файлов не из корня клиента.

Также пришлось поправить патчер для енамов, без доработок он лезет во все енамы, а в моей задачке нужно как раз создать кастомный енам, который не нужно патчить.

По поводу тестов я так понял, что их толком нет, только общий тест об успешном выполнении команды генерации клиента.

Правок шаблона не требуется, обратная совместимость с ним не нарушается.

PS: в твоём мр ты выпилила кусочек https://github.com/ensi-platform/laravel-openapi-client-generator/blob/master/src/Commands/GenerateClient.php#L159
Без него не проходят тесты, ну и если не будет папки под клиент, то руками её нужно будет создавать.
Вернул обратно.

PSPS: в текущем МР часть тестов не проходит, что-то не то с версиями JVM, у меня и на локалке также и я посмотрел соседний МР Андрея, там тоже так. Имхо это не баг кода, имхо нужно отдельно с этим разбираться.

@filippovano filippovano self-assigned this Oct 8, 2023
@MsNatali MsNatali merged commit e68a0cb into master Oct 9, 2023
3 of 5 checks passed
@MsNatali MsNatali deleted the fix_ignore_files branch October 9, 2023 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants