Federico Mariani created CAMEL-20979:
----------------------------------------
Summary: null operation name when using contract first api
Key: CAMEL-20979
URL: https://issues.apache.org/jira/browse/CAMEL-20979
Project: Camel
Issue Type: New Feature
Reporter: Federico Mariani
When using [contract first rest dsl
openapi|https://camel.apache.org/manual/rest-dsl-openapi.html] the following
yaml open api (taken from
https://swagger.io/docs/specification/basic-structure/)
{code:java}
openapi: 3.0.0
info:
title: Sample API
description: Optional multiline or single-line description in
[CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://api.example.com/v1
description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.com
description: Optional server description, e.g. Internal staging server for
testing
paths:
/users:
get:
summary: Returns a list of users.
description: Optional extended description in CommonMark or HTML.
responses:
'200': # status code
description: A JSON array of user names
content:
application/json:
schema:
type: array
items:
type: string
{code}
generate the following log if missing routes are ignored
{code:java}
2024-07-15T12:11:30.635+02:00 WARN 12918 --- [ main]
.r.o.DefaultRestOpenapiProcessorStrategy : OpenAPI specification has 1 unmapped
operations to corresponding routes:
direct:null
This validation error is ignored.
{code}
in particular, _direct:null_ route has to be created, given that openrationId
is not provided, is it expected? can route name be dynamically generated via
$path + $verb?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)