This document gives coding conventions for the Superface use-cases created in Station repository.
- Use 2 spaces per indentation level.
- Profile SHOULD contain one usecase.
- Usecase MUST have error defined.
- Usecase MUST have defined safety.
- Usecase SHOULD contain at least one example of success.
- Usecase SHOULD contain at least one example of error.
- Fields MUST use required declaration.
- Named fields and models SHOULD NOT be used, unless they are reused. (Better Profile rendering)
- Profile filename MUST use
-
(dash) as delimiter. - Usecase name MUST use PascalCase format.
- Field name MUST use camelCase format.
- Use block string literal
"""
when writing title and description. - Profile MUST have title and description.
- Every usecase MUST have title and description.
- Every field MUST have title and description.
- Use 2 spaces per indentation level.
There are no other conventions right now. We want first gather more content to understand how Comlink maps are written to decide what conventions would make sense.
- Provider name MUST use
-
(dash) as delimiter. - Provider Id SHOULD be short and descriptive.
- Provider Id MUST NOT be misleading.
- Service base URL MUST NOT contain API version.
- Security Scheme Id MUST use
-
(dash) as delimiter. - Security Scheme Id SHOULD be named same as in provider documentation.
- Use-case MUST have automated tests.
- TODO: Link to README section about testing.
For reference capabability see communication/send-email.