Skip to content

馃挕 [REQUEST] - Optional output format structure#22

Description

@blaisebits

Implementation PR

N/A

I was trying to write this myself, but I really suck at Rust.

Reference Issues

N/A

Summary

It would be really cool if you could add optional output formatting information to the YAML definition for use with something like Pydantic for creating structure outputs.

Basic Example

Example for Nmap output

    outputs:
      ip_address:
        type: string
        description: The host IP address
      ports:
        type: List[string]
        description: The port number
      states:
        type: List[string]
        description: Define if the port is open, closed, or filtered
      services:
        type: List[string]
        description: The service running on the associated port
      versions:
        type: List[string]
        description: The version of the server software running
      scripts:
        type: List[List[string]]
        description: Nmap Scripting engine output

Drawbacks

None I can think of

Unresolved questions

The example shows a means of defining it for python, I'm unsure how this variables would translate to other languages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/devChanges to development tools and assetstype/minorMinor changes (features, improvements)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions