Aquesta és una versió anterior. La versió actual és la 0.2.19. Anchors 0.2.19 · Data de publicació:
Fitxers d’instal·lació 0.1.379
| Arquitectura | Tipus | Àmbit | Mida del fitxer | Baixa | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.
Notes de la versió
Feature: an OpenAPI field can be another contract
A contract's field holding another contract had no type: its Type cell was kept as the field's
description, and the clients generated from the document typed it as anything. At SS, 19 fields
came out untyped, the items of 17 pages among them.
A Type cell now cites a contract by its code in backticks, as the body and the responses do:
─────┬─────────────
Input│Type
─────┼─────────────
items│array of
│CBRNC
─────┼─────────────
rule │RCRUL
─────┴─────────────
- `CODE` is a $ref to that contract's schema; array of `CODE` and `CODE`[] are
an array whose items is that $ref. The field keeps what it accepts as its description.
- The cited contract is a shared schema in components, even when only a field cites it.
- A contract citing itself, or one citing it back, compiles: each is a reference.
- A code no spec of the project has fails the build, naming the spec and the code (OPNAP-E03).
A Type cell with no code in backticks reads as before.
Everything in the v0.1.351 notes still applies: run anchors migrate once, crossing format 8.
Changelog
- 8237e4f feat(openapi): a field typed with a contract's code is a $ref to its schema