Skip to content

apiverve/action-devops-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

APIVerve DevOps Utilities Action

Validate JSON schemas, test regex patterns, and decode JWTs

Beta Release - This action is in beta. We'd love your feedback! Open an issue if you encounter any problems.

![GitHub Marketplace](https://img.shields.io/badge/Marketplace-DevOps Utilities-blue?logo=github) License: MIT

Browse All APIs | Get Free API Key | Documentation


What does this action do?

This action provides access to APIVerve's DevOps Utilities APIs directly in your GitHub workflows:

  • Validate JSON against schemas
  • Generate JSON schemas from data
  • Test regex patterns
  • Decode and inspect JWTs

Available APIs

API Description
jsonschemavalidator JSON Schema Validator is a comprehensive tool for validating JSON data against JSON Schema definitions. It provides detailed error reporting with field-level validation results.
jsonschemagenerator JSON Schema Generator is a tool for automatically generating JSON schemas from sample JSON data. It creates Draft-07 compatible schemas with type inference and format detection.
regextester Regex Tester is a comprehensive tool for testing and validating regular expressions. It supports multiple operations (test, match, search, replace, split) with detailed performance analysis and pattern suggestions.
jwtdecoder JWT Decoder decodes JWT tokens to reveal header and payload information without performing signature verification.
cronparser Cron Expression Parser is a comprehensive tool for parsing and validating cron expressions. It supports both 5-field and 6-field formats and returns detailed information about each field.

Quick Start

- name: DevOps Utilities
  uses: apiverve/action-devops-utilities@v1
  with:
    api_key: ${{ secrets.APIVERVE_KEY }}
    api: jsonschemavalidator
    params: '{"json": {"name": "test"}, "schema": {"type": "object", "properties": {"name": {"type": "string"}}}}'

Setup

1. Get Your API Key

Sign up for a free account at dashboard.apiverve.com/signup and create an API key.

2. Add Secret to Repository

Go to your repository SettingsSecrets and variablesActionsNew repository secret

  • Name: APIVERVE_KEY
  • Value: Your API key from the dashboard

3. Use in Workflow

- name: DevOps Utilities
  uses: apiverve/action-devops-utilities@v1
  with:
    api_key: ${{ secrets.APIVERVE_KEY }}
    api: jsonschemavalidator
    params: '{"your": "parameters"}'

Inputs

Input Description Required Default
api_key Your APIVerve API key (or set APIVERVE_API_KEY env var) Yes* -
api API to use: jsonschemavalidator, jsonschemagenerator, regextester, jwtdecoder, cronparser No jsonschemavalidator
params JSON parameters for the API No {}
output_file Path to save binary output (images, PDFs) No -
format Response format: json, yaml, or xml No json
fail_on_error Fail workflow if API returns error No true

*API key is required but can be provided via input OR APIVERVE_API_KEY / APIVERVE_KEY environment variable.

Outputs

Output Description
result Full API response as JSON
data The data field from response as JSON
status API status (ok or error)
file Path to downloaded file (if output_file was used)

Examples

JSON Schema Validation

Validate JSON data against a schema

- name: JSON Schema Validation
  id: devops-utilities-0
  uses: apiverve/action-devops-utilities@v1
  with:
    api_key: ${{ secrets.APIVERVE_KEY }}
    api: jsonschemavalidator
    params: '{"json": {"name": "test"}, "schema": {"type": "object", "properties": {"name": {"type": "string"}}}}'

- name: Use result
  run: echo "Result: ${{ steps.devops-utilities-0.outputs.data }}"

JWT Decode

Decode a JWT token

- name: JWT Decode
  id: devops-utilities-1
  uses: apiverve/action-devops-utilities@v1
  with:
    api_key: ${{ secrets.APIVERVE_KEY }}
    api: jwtdecoder
    params: '{"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'

- name: Use result
  run: echo "Result: ${{ steps.devops-utilities-1.outputs.data }}"

Full Workflow Example

name: DevOps Utilities Workflow

on:
  push:
    branches: [main]
  workflow_dispatch:

jobs:
  devops-utilities:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run DevOps Utilities
        id: result
        uses: apiverve/action-devops-utilities@v1
        with:
          api_key: ${{ secrets.APIVERVE_KEY }}
          api: jsonschemavalidator
          params: '{"json": {"name": "test"}, "schema": {"type": "object", "properties": {"name": {"type": "string"}}}}'

      - name: Show result
        run: |
          echo "Status: ${{ steps.result.outputs.status }}"
          echo "Data: ${{ steps.result.outputs.data }}"

Related Actions

Looking for more APIVerve actions?

Browse all APIVerve Actions →


Pricing

  • Free tier - Get started with generous free limits
  • Pro plans - Higher rate limits and priority support for production use

Check out pricing details.


Resources


License

MIT - see LICENSE


Built by APIVerve - 350+ APIs for developers

About

Validate JSON schemas, test regex patterns, and decode JWTs

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors