hivemq / hivemq-edge

HiveMQ Edge is an MQTT gateway that enables interoperability between OT devices and IT systems. It translates diverse protocols into MQTT for streamlined communication and helps organize data into a unified namespace, making managing and streaming data across your infrastructure easier.
http://hivemq.com
Apache License 2.0
91 stars 20 forks source link

feat(20786): update the openAPI stubs #345

Closed vanch3d closed 2 months ago

vanch3d commented 3 months ago

See https://hivemq.kanbanize.com/ctrl_board/57/cards/20786/details/

The PR updates the stubs and schemas to the OepnAPI specs 2024.2. It adds the missing hooks and mockd payload

vanch3d commented 3 months ago

There is a bug with the OpenAPI version 2024.3, regarding DataPolicyValidator (type is SCHEMA, should be schema according to docs and cookbook)

    DataPolicyValidator:
      type: object
      description: A policy validator which executes the defined validation.
      properties:
        arguments:
          type: object
          description: The required arguments of the referenced validator type.
        type:
          type: string
          description: The type of the validator.
          enum:
          - SCHEMA
      required:
      - arguments
      - type
vanch3d commented 3 months ago

Problem with the spelling/casing of the SCHEMA enum for the validator. On hold

vanch3d commented 2 months ago

This PR is deprecated, due to the upgrading of React Query (#405 ) and significant refactoring. Redo the generation once #405 has been merged and cherry-pick the required bits