Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
dredd-transactions
Advanced tools
Compiles HTTP Transactions (Request-Response pairs) from API description document
Dredd Transactions library compiles HTTP Transactions (simple Request-Response pairs) from API description document.
Note: To better understand emphasized terms in this documentation, please refer to the Glossary of Terms. All data structures are described using the MSON format.
This project supersedes Blueprint Transactions library.
Note: These features are to be superseded by so-called Transaction Path. Feel free to read and comment the proposal in apiaryio/dredd#227.
npm install dredd-transactions
Dredd Transactions library is written in CoffeeScript language which compiles to JavaScript (ECMAScript 5).
compile
Compiles HTTP Transactions from given API description document.
var dt = require('dredd-transactions');
dt.compile('# My API\n...', 'apiary.apib', function (error, compilationResult) {
// ...
});
Result of compilation. Alongside compiled Transaction objects contains also errors and warnings, mainly from API description parser.
transactions
(array[Transaction]) - Compiled HTTP Transactions.errors
(array[Annotation]) - Errors which occurred during parsing of the API description or during compilation of transactions.warnings
(array[Annotation]) - Warnings which occurred during parsing of the API description or during compilation of transactions.Represents a single HTTP Transaction (Request-Response pair) and its location in the API description document. The location is provided in two forms, both deprecated as of now:
name
- String representation, both human- and machine-readable.origin
- Object of references to nodes of API Elements derived from the original API description document.Note: These two forms of locating HTTP Transactions are to be superseded by so-called Transaction Path. Feel free to read and comment the proposal in apiaryio/dredd#227.
/message
(string) - Informative URI of the Request.Hello world!\n
(string)200
(string)Hello world! > Retrieve Message
(string) - Transaction Name, non-deterministic breadcrumb location of the HTTP Transaction within the API description document../api-description.apib
(string)My Api
(string)Greetings
(string)Hello, world!
(string)Retrieve Message
(string)First example
(string)Note: These properties are to be superseded by so-called Transaction Path. Feel free to read and comment the proposal in apiaryio/dredd#227.
Description of an error or warning which occurred during parsing of the API description or during compilation of transactions.
apiDescriptionParser
parametersValidation
uriTemplateExpansion
./api-description.apib
(string)My Api
(string)Greetings
(string)Hello, world!
(string)Retrieve Message
(string)First example
(string)Note: These properties are to be superseded by so-called Transaction Path. Feel free to read and comment the proposal in apiaryio/dredd#227.
FAQs
Compiles HTTP Transactions (Request-Response pairs) from an API description document
The npm package dredd-transactions receives a total of 0 weekly downloads. As such, dredd-transactions popularity was classified as not popular.
We found that dredd-transactions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.