Comments (9)
Hi @sunxyw, thank you for reporting this issue.
I believe I've managed to reproduce this in #72, so will work on a fix when I get a little time. If you have any suggestions towards a fix, feel free to message over on the PR 😄
(cc: @tomirons)
from laravel-api-to-postman.
Good, please take your time, this is not in a hurry.
from laravel-api-to-postman.
This has now been resolved in the latest release. Thanks again for your help on the issue.
from laravel-api-to-postman.
#72 stops this throwing an error, we still don't have support for custom rules at this moment in time though.
from laravel-api-to-postman.
This error still presents even updated to the latest version v1.12.1.
from laravel-api-to-postman.
Weird, I thought the test case would have caught this. I’ll take a look at this when I get back home in a few hours.
cc: @tomirons
from laravel-api-to-postman.
I tried fixing it myself, maybe it wasn't the best way, but it did get rid of the error.
laravel-api-to-postman/src/Commands/ExportPostmanCommand.php
Lines 329 to 330 in 352cc1b
if (is_array($rules)) {
foreach ($rules as $i => $rule) {
if (is_object($rule)) {
unset($rules[$i]);
}
}
$this->validator = Validator::make([], [$attribute => implode('|', $rules)]);
from laravel-api-to-postman.
Hi @sunxyw,
I'll be taking a look at this today, I had a bit of a busy day yesterday so didn't get round to it.
Thanks for posting your solution. I'll need to be able to reproduce this through a unit test before I can submit a fix though.
Do you have any ideas how we could maybe reproduce it in a unit test?
from laravel-api-to-postman.
Okay, I managed to reproduce it. It's when a rule class is within an array of rules.
from laravel-api-to-postman.
Related Issues (20)
- Class "" does not exist HOT 9
- Idea: Be able to set examples (with arguments, headers, etc.) HOT 3
- Idea: Lumen Support HOT 3
- There are no commands defined in the "export" namespace. HOT 1
- Laravel 9 Support HOT 2
- Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException HOT 5
- Export command says that postman collection was exported but no JSON file created HOT 4
- work in laravel < 6 ? HOT 4
- Running import in my project I got error ... HOT 3
- ReflectionException HOT 5
- Adding support for comments translation. HOT 1
- Target class [App\Http\Controllers\HomeController] does not exist. HOT 3
- Trying to access array offset on value of type null HOT 2
- form update request unique HOT 2
- Add over-write support HOT 8
- Laravel 10 HOT 6
- Empty Postman json file HOT 8
- Idea, somehow get data required and optional from FormRequest HOT 18
- Is there a way to set body for each route that would reflect in the collection HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-api-to-postman.