Redocly/redocly-cli

Join with --prefix-components-with-info-prop does not produce any output since version 1.9.0

simon-spinner opened this issue · 3 comments

Describe the bug
redocly-cli crashes on join if schema property contains a null value

To Reproduce
Steps to reproduce the behavior:

  1. Given the two OpenAPI file(s)

openapi1.yaml

openapi: '3.0.2'
info:
  title: API1
  version: '1.0'
servers:
  - url: https://api.server.test/v1
paths:
  {}
components:
  schemas:
    Schema1:
      type: string

openapi2.yaml

openapi: '3.0.2'
info:
  title: API2
  version: '1.0'
servers:
  - url: https://api.server.test/v1
paths:
  {}
components:
  schemas:
    Schema2:
      type: string
      default: null
      nullable: true
  1. Run redocly join --prefix-components-with-info-prop title openapi1.yaml openapi2.yaml
  2. No output is provided

Expected behavior

Join works as it did before version 1.9.0 was released.

Redocly Version(s)

1.9.0

Taking a look. Thanks for reporting!

@simon-spinner could you confirm the issue got resolved in v1.9.1?

@tatomyr yes this issue got resolved. However with our OpenAPI we still run into an issue requiring a "sed"-postprocessing. See follow on issue: #1451