Skip to content

Bug: dependentOn: allOf with "x-faker: false" #52

Closed
@siggi-k

Description

@siggi-k

Invoice.yaml

title: Invoice
x-table: invoices
type: object
properties:
  id:
    type: integer
  reference_invoice:
    allOf:
      - $ref: '#/components/schemas/Invoice'
      - x-faker: false
      - description: This field is only set on invoices of type "cancellation_invoice"

When inserting this code, 'Invoice' itself is also listed as dependent in the dependentOn function in InvoiceFaker.php. This should not happen for two reasons:

  1. It fundamentally makes no sense to mark itself as dependent.
  2. The setting x-faker: false should result in the referenced relation not being taken as dependent.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions