cancel
Showing results for 
Search instead for 
Did you mean: 

COBOL comp-3 equivalent field

Highlighted
New Member

COBOL comp-3 equivalent field

Hi,

I trigger an outbound transaction from mainframe to API gateway. In my COBOL I have a variable defined as comp-3 however there is no equal field definition in the swagger. Available options are float (comp-1), double (comp-2), integer (comp-5). But I don't find a decimal (comp-3) in below link. Can you advice if there is any equivalent for decimal (comp-3) format in API swagger definition?

https://swagger.io/docs/specification/data-models/data-types/#numbers
1 REPLY 1
Highlighted
Moderator

Re: COBOL comp-3 equivalent field

OpenAPI does not have a built-in data type for "decimal", but some implementations handle decimal values as

type: number
format: decimal

See also: https://github.com/OAI/OpenAPI-Specification/issues/845#issuecomment-378139730


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors
Top Kudoed Posts