You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use spectral linting for my workflow to validate the asyncapi and it's throwing an error for a double type.
Could you please tell me whether double is supported in the data type. Here is the sample snippet with the type highlighted.
channels:
CENTRAL.WAREHOUSE:
description: |-
Events about stock movements in the main central warehouse
subscribe:
operationId: consumeCentralStockEvent
bindings:
kafka:
clientId:
type: string
pattern: '^[a-z]{22}$'
groupId:
type: string
pattern: '^[A-Z]{10}[1-5]$'
message:
name: stockEventCentral
title: Central stock event
summary: Central warehouse stock change
description: Description of a change to the stock level in the central warehouse
schemaFormat: 'application/vnd.aai.asyncapi;version=2.3.0'
contentType: 'application/json'
tags:
- name: central
description: Events relating to the central warehouse
- name: stock
description: Events relating to stock levels
headers:
type: object
properties:
acmeTracking:
description: |-
If the event was generated by the ACME system, the tracking ID used for
correlation purposes will be included in this header.
type: string
payload:
type: object
required:
- itemid
- count
- eventtimestamp
properties:
itemid:
description: Catalog id for the item
type: double
format: uuid
type:
description: Type of event that led to the stock change
type: string
default: inter-warehouse-transfer
enum:
- customer-sale
- delivery
- inter-warehouse-transfer
count:
description: Change to the number of items. Positive values indicate increases in stock, negative values indicate decreases in stock level.
type: integer
eventtimestamp:
description: Time that the stock level change was recorded
type: string
format: date-time
signedby:
description: Userid of the staff member who approved the transfer. Not required if the transfer was automated
type: string
format: email
additionalProperties: false
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Team,
I am trying to use spectral linting for my workflow to validate the asyncapi and it's throwing an error for a double type.
Could you please tell me whether double is supported in the data type. Here is the sample snippet with the type highlighted.
channels:
CENTRAL.WAREHOUSE:
description: |-
Events about stock movements in the main central warehouse
subscribe:
operationId: consumeCentralStockEvent
bindings:
kafka:
clientId:
type: string
pattern: '^[a-z]{22}$'
groupId:
type: string
pattern: '^[A-Z]{10}[1-5]$'
message:
name: stockEventCentral
title: Central stock event
summary: Central warehouse stock change
description: Description of a change to the stock level in the central warehouse
schemaFormat: 'application/vnd.aai.asyncapi;version=2.3.0'
contentType: 'application/json'
tags:
- name: central
description: Events relating to the central warehouse
- name: stock
description: Events relating to stock levels
headers:
type: object
properties:
acmeTracking:
description: |-
If the event was generated by the ACME system, the tracking ID used for
correlation purposes will be included in this header.
type: string
payload:
type: object
required:
- itemid
- count
- eventtimestamp
properties:
itemid:
description: Catalog id for the item
type: double
format: uuid
type:
description: Type of event that led to the stock change
type: string
default: inter-warehouse-transfer
enum:
- customer-sale
- delivery
- inter-warehouse-transfer
count:
description: Change to the number of items. Positive values indicate increases in stock, negative values indicate decreases in stock level.
type: integer
eventtimestamp:
description: Time that the stock level change was recorded
type: string
format: date-time
signedby:
description: Userid of the staff member who approved the transfer. Not required if the transfer was automated
type: string
format: email
additionalProperties: false
Regards,
Tanuj Arora
Beta Was this translation helpful? Give feedback.
All reactions