-
-
Notifications
You must be signed in to change notification settings - Fork 356
Open
Labels
Description
Scribe version
5.2.1
PHP version
8.3
Laravel version
12.19.3
Scribe config
title => "Lock API"
theme => "elements"
try_it_out.use_csrf => true
auth.enabled => true
auth.default => true
auth.name => "Authorization"
auth.placeholder => "{YOUR_BEARER_TOKEN}"
logo => "build/images/logo.png"
examples.faker_seed => null
strategies.headers => removed [
'Knuckles\\Scribe\\Extracting\\Strategies\\StaticData',
[
'only' => [],
'except' => [],
'data' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
],
]
strategies.responses => added [
'Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls',
[
'only' => [
'GET *',
],
'config' => [
'app.debug' => false,
],
],
]: removed [
'Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls',
[
'only' => [
'GET *',
],
'except' => [],
'config' => [
'app.debug' => false,
],
'queryParams' => [],
'bodyParams' => [],
'fileParams' => [],
'cookies' => [],
],
]
routeMatcher => "Knuckles\\Scribe\\Matching\\RouteMatcher"What happened?
When I tried to add the Accept and Content-Type headers as global headers, I found that they were not added to the generated documentation
I try:
- set theme
defaultandelements php artisan config:cachephp artisan scribe:generate
Adding headers is chaotic, sometimes Content-Type is present, sometimes not. The Accept header is never added.
Docs
- I've checked the docs, the troubleshooting guide, and existing issues, but I didn't find a solution