Home

Awesome

REUSE status

OpenAPI Specification for SAP Ecosystem

This repository contains extensions to the original OpenAPI Specification which are relevant for SAP Ecosystem and corresponding tooling. Additionally, it provides a compiled "ready to use" version of schema files which includes the original schemas with SAP-specific changes on top.

The following versions of OpenAPI Specification are supported:

Every OpenAPI Specification for SAP Ecosystem document is also a valid OpenAPI document of a corresponding version.

The goal of these specification is to describe SAP's extensions to OpenAPI Specifications in a standardized way. The specification are used by SAP API Business Hub and other tooling in SAP Ecosystem.

Requirements

Each schema in this repository is described using JSON format.

No specific tools are needed to use these schema files.

Contributors to this repository will need to run the generator, which requires Node.js to be installed.

Known Issues

No known issues.

Primitive Type Mapping

OpenAPI is based on the JSON type system and uses the format keyword for differentiating JSON types, and in some cases additional keywords:

ABAPCAPJavaODataSQLOpenAPI typeOpenAPI formatOpenAPI keywordsJSON example
RAW16, CHAR32UUIDjava.lang.StringEdm.GuidVARBINARY(16), VARCHAR(32), NVARCHAR(36)stringuuid-"1e4c3ce2-452b-4a0f-9ce4-985edc35b4d7"
ABAP_BOOLBooleanbooleanEdm.BooleanBOOLEANboolean--true
bUInt8shortEdm.ByteTINYINTintegeruint8-255
--shortEdm.SByteTINYINTintegerint8--128
sInt16shortEdm.Int16SMALLINTintegerint16-32767
iInt32, IntegerintEdm.Int32INTEGERintegerint32-2147483647
int8Int64, Integer64longEdm.Int64BIGINTstring, integerint64-"9223372036854775807"
decfloat34Decimaljava.math.BigDecimalEdm.DecimalDECIMALstring, numberdecimal128-"9.999999999999999999999999999999999e6144"
pDecimal(p,s)java.math.BigDecimalEdm.DecimalDECIMAL(p,s)string, numberdecimalx-sap-precision, x-sap-scale"12556.33"
fDoubledoubleEdm.DoubleDOUBLEnumberdouble3.141592653589793
dDatejava.time.LocalDateEdm.DateDATEstringdate-"2024-12-31"
/IWBEP/V4_EDM_TYPE_DURATION-java.time.DurationEdm.Duration-stringduration-"27DT7H43M40.8S"
tTimejava.time.LocalTimeEdm.TimeOfDayTIMEstring(time)-"23:59:59"
utclongDateTime, Timestampjava.time.InstantEdm.DateTimeOffsetTIMESTAMPstringdate-time-"1969-07-20T20:17:00Z"
stringStringjava.lang.StringEdm.StringNVARCHARstring--"Hello\nWorld"
c, nString(m)java.lang.StringEdm.StringNVARCHAR(m)string-maxLength: m"Hôtel de Ville"
xstringBinarybyte[]Edm.BinaryVARBINARYstringbase64url-"T0RhdGE"
xBinary(m)byte[]Edm.BinaryVARBINARY(m)stringbase64urlmaxLength: m"T3BlbkFQSQ=="
xstringLargeBinarybyte[]Edm.BinaryBLOBstringbase64url-"R3JhcGhRTA=="
stringLargeStringjava.lang.StringEdm.StringNCLOBstring--"Once upon a time..."

How to obtain support

See CONTRIBUTING.md.

Contributing

See CONTRIBUTING.md.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.