-
Notifications
You must be signed in to change notification settings - Fork 3
/
alire.toml
68 lines (52 loc) · 2.47 KB
/
alire.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
description = "OpenAPI library to build REST client applications"
tags = ["rest", "web", "api", "openapi"]
name = "openapi"
version = "0.7.0"
licenses = "Apache-2.0"
authors = ["[email protected]"]
maintainers = ["[email protected]"]
maintainers-logins = ["stcarrez"]
project-files = [".alire/openapi.gpr"]
website = "https://gitlab.com/stcarrez/openapi-ada"
long-description = """
[![Build Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/openapi-ada/badges/build.json)](https://porion.vacs.fr/porion/projects/view/openapi-ada/summary)
[![Test Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/openapi-ada/badges/tests.json)](https://porion.vacs.fr/porion/projects/view/openapi-ada/xunits)
[![Coverage](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/openapi-ada/badges/coverage.json)](https://porion.vacs.fr/porion/projects/view/openapi-ada/summary)
[OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) is a code generator that supports generation of
API client libraries, server stubs and documentation automatically
given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification).
The Ada client support has been integrated in [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator).
The OpenAPI Ada library is a small support library for the Ada code generator
provided by OpenAPI Generator. The library provides support to serialize the data,
make HTTP requests and support the [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification)
specific operations or types.
## Alire setup
```
alr with openapi
```
For the HTTP connection, you can either use AWS or CURL and run one of the following commands:
```
alr with utilada_curl
alr with utilada_aws
```
## Generation
Example of client generation with OpenAPI file `my-api.yaml` and use of CURL support:
```
alr exec -- openapi-generate-client -i my-api.yaml \
--additional-properties projectName=MyProject \
--additional-properties openApiName=OpenAPI \
--additional-properties httpSupport=Curl \
--model-package MyProject.MyModule -o .
```
"""
[[depends-on]]
utilada = "^2.6.0"
utilada_xml = "^2.6.0"
security = "^1.5.0"
[gpr-externals]
OPENAPI_BUILD = ["distrib", "debug", "optimize", "profile", "coverage"]
OPENAPI_LIBRARY_TYPE = ["relocatable", "static", "static-pic"]
[configuration]
disabled = true
[environment]
PATH.prepend = "${CRATE_ROOT}/scripts"