
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
This middleware provides dynamic service component WADL lexicon and individal service ?wadl lexicon. If /lexicon is requested on a service component, this middleware compiles a WADL document describing all routes registered with the router meta object provided. If a specific service endpoint is requested, appended with ?wadl, this middleware compiles a WADL document describing that service.
Add this line to your application's Gemfile:
gem 'soar_lexicon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install soar_lexicon
Ensure that your rack env includes a 'lexicon' key that is configured with route descriptions of the following form:
lexicon = {
'/route-path' => {
'description' => 'Business question answered here',
'service_name' => 'business_service',
'path' => '/route-path',
'method' => 'get',
'params' => {
'pattern' => {
'required' => 'true', 'type' => 'string'
}
},
}
}
If you are using SoarAspects, this can be accomplished so:
SoarAspects::Aspects::lexicon = lexicon
use SoarAspects::Aspects
Then, in your config.ru, place:
use SoarLexicon::Lexicon
SoarLexicon delivers a WADL XML document and delivers an expectation of a style-sheet for display in a browser to be located on the service component at the path /wadl/wadl.xsl
Please send feedback and comments to the author at:
Ernst van Graan ernst.van.graan@hetzner.co.za
This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that soar_lexicon 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.