Skip to content

Bump symfony/var-dumper from 6.3.3 to 6.4.15 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 41 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions config/asseco-open-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
/**
* Namespace for Laravel models.
*/
'model_namespace' => 'App\\Models\\',
'model_namespace' => 'App\\Models\\',

/**
* General OpenApi properties to generate.
*/
'general' => [
'general' => [
'openapi' => '3.0.0',

'info' => [
'title' => ucfirst(config('app.name')) . ' API',
'title' => ucfirst(config('app.name')) . ' API',
'description' => 'Generated with this [awesome package](https://github.com/asseco-voice/laravel-open-api)!',
'version' => '0.0.1',
'version' => '0.0.1',
],

'servers' => [
[
'url' => config('app.url'),
'url' => config('app.url'),
'description' => 'Default server',
],
],
Expand All @@ -48,14 +48,14 @@
/**
* Name of generated file.
*/
'file_name' => 'open-api.yml',
'file_name' => 'open-api.yml',

/**
* Rules for excluding certain rules.
*/
'exclude' => [
'exclude' => [
// Partial match. Using 'index' will match '*index*'.
'route_name' => [
'route_name' => [
'horizon',
],
// Exact match by controller full namespace
Expand All @@ -68,12 +68,12 @@
'global_headers' => '',

'data_types' => [
'string' => StringType::class,
'number' => NumberType::class,
'string' => StringType::class,
'number' => NumberType::class,
'integer' => IntegerType::class,
'boolean' => BooleanType::class,
'array' => ArrayType::class,
'object' => ObjectType::class,
'array' => ArrayType::class,
'object' => ObjectType::class,
],

/**
Expand All @@ -84,7 +84,7 @@
/**
* Get additional command output (for debugging purposes). Command flag, not to be used manually.
*/
'verbose' => false,
'verbose' => false,

/**
* Prepend service name to operationId.
Expand Down
2 changes: 1 addition & 1 deletion src/Handlers/AppendHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected static function parseTag($tag, $namespace): array
self::verifyModelExists($model);

return [
'key' => $key,
'key' => $key,
'model' => new $model,
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public function addDescription(string $description): void
public function toSchema(): array
{
$schema = [
'in' => 'path',
'name' => $this->name,
'schema' => $this->dataType->toSchema(),
'required' => true, // OpenApi doesn't support optional path parameters like Laravel does
'in' => 'path',
'name' => $this->name,
'schema' => $this->dataType->toSchema(),
'required' => true, // OpenApi doesn't support optional path parameters like Laravel does
'description' => $this->description,
];

Expand Down
6 changes: 3 additions & 3 deletions src/Specification/Shared/Properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function toSchema(): array

return [
'properties' => $properties,
'required' => $required,
'required' => $required,
];
}

Expand All @@ -39,7 +39,7 @@ private function parseColumns(): array
foreach ($this->modelColumns as $column) {
if (is_string($column)) {
$columnValues = [
'type' => 'string',
'type' => 'string',
'example' => $column,
];
$properties = array_merge_recursive($properties, $columnValues);
Expand All @@ -48,7 +48,7 @@ private function parseColumns(): array

$columnValues = [
$column->name => [
'type' => $column->type,
'type' => $column->type,
'description' => $column->description,
//'format' => 'map something',
],
Expand Down
Loading
Loading