Skip to content

There are no response types depending on the route name using fromTypes. #298

@rundleman

Description

@rundleman

"elysia": "1.4.13"
"@elysiajs/openapi": "1.4.11",
"@types/bun": "1.3.1"

route '/projects' has automatic response type inference.
route '/api/v1/projects' does not.

const projectsWithVersion = new Elysia({
	prefix: '/api/v1/projects'
}).post('', ({ query }) => query, {
	query: t.Object({
		userId: t.Number()
	})
})

const projects = new Elysia({
	prefix: '/projects'
}).post('', ({ query }) => query, {
	query: t.Object({
		userId: t.Number()
	})
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions