orval
orval copied to clipboard
fix(core): unexecpect insterd blank schema so revert #1219
Status
HOLD
Description
fix https://github.com/anymaniax/orval/issues/1227 When I responded to #1219, it caused unintended destruction, so I revert it. The issue where the interface definition results in an error when interface is an blank schema is resolved by replacing the value only in the case of interfaces.
Related PRs
- https://github.com/anymaniax/orval/pull/1219
Todos
- [x] Tests
- [x] Documentation
- [x] Changelog Entry (unreleased)
Steps to Test or Reproduce
- prepared openapi woth blank object
openapi: 3.0.3
info:
description: test
title: test
version: test
paths:
/ping:
get:
summary: test
responses:
'200':
description: ok
components:
schemas:
DbNotificationID: {}
- execute
orval - check generated definition is valid
This PR will be on hold until the discussion in #1227 is over. If you are in a hurry to fix the problem, I think this PR will help you.
@soartec-lab i added my openapi JSON an Orval config in the ticket if you want to verify.
@melloware thanks. I missed typo so i'll fix it. And i need some more time for inspection.
@melloware I have completed this PR, so please give me a review.
Thanks!!