Skip to content

Commit 8cbfc45

Browse files
committed
support read/write only on references
1 parent 595ca77 commit 8cbfc45

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flexbase/openapi-generator",
3-
"version": "3.2.1",
3+
"version": "3.3.0",
44
"description": "Open API code generator",
55
"author": {
66
"name": "Flexbase Technologies",

src/parser/openapi.parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export abstract class OpenApiParser {
462462
if (property.definition[omitType] !== true) {
463463
if (isReference(property.definition)) {
464464
const found = this.lookupReference(property.definition, components, 'models');
465-
if (found) {
465+
if (found && found.definition[omitType] !== true) {
466466
const node = this.createOmitDefinition(found.definition, omitType, components);
467467
if (node) {
468468
if (!isObjectNode(node) || node.properties.length > 0) {

0 commit comments

Comments
 (0)