Skip to content

Request: Improve documentation to explain where the JSON schema files used to generate the TS definitions come from #57

Open
@Woodz

Description

@Woodz

I'm very excited to see the automation involved in this repository to ensure the definitions are kept up to date. However, tracing the origin of the definitions is quite hard because the documentation just states

It aims to automate service file TypeScript definitions based on JSON-schema used by serverless/serverless for validation at the beginning of any Serverless CLI command

However, trying to find which JSON schemas this repo uses is very hard, since there is no mention of where these schemas are on:

With some digging, I found https://github.com/serverless/serverless/blob/739045d9bb03ddefcacceca0bd39f188517b187d/lib/plugins/aws/provider/awsProvider.js#L235 but this doesn't seem to match the TS definitions, so it is probably not the right one.

Specifically, I am trying to find what the purpose of the outputs object at the root level is (not to be confused with the expected resources.Outputs object), but cannot answer this question easily.

I'd appreciate any clarification on the JSON schemas used, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions