GithubHelp home page GithubHelp logo

Comments (3)

jlevers avatar jlevers commented on August 17, 2024 1

This is the purpose of the modifications.json file, which is documented here. I'd use that to handle this issue. If you need more guidance after taking a look at those links, let me know :)

from selling-partner-api.

KhorneHoly avatar KhorneHoly commented on August 17, 2024

This is the purpose of the modifications.json file, which is documented here. I'd use that to handle this issue. If you need more guidance after taking a look at those links, let me know :)

Thanks, didn't noticed that, sorry. Created a pull request.

Note: The generation method touched multiple dozens of files, while one one did in fact change.
I needed to revert a lot of changes done by the process.

All of that changes were changes in formatting. Spaces to intend were changed, the placement of the curly brackets was changed a bit, spaces within the Docblock were changed a bit.

Example constructor before the generation:

public function __construct(
        protected array $marketplaceIds,
        protected ?array $identifiers = null,
        protected ?string $identifiersType = null,
        protected ?array $includedData = null,
        protected ?string $locale = null,
        protected ?string $sellerId = null,
        protected ?array $keywords = null,
        protected ?array $brandNames = null,
        protected ?array $classificationIds = null,
        protected ?int $pageSize = null,
        protected ?string $pageToken = null,
        protected ?string $keywordsLocale = null,
    ) {}

After generation:

public function __construct(
		protected array $marketplaceIds,
		protected ?array $identifiers = null,
		protected ?string $identifiersType = null,
		protected ?array $includedData = null,
		protected ?string $locale = null,
		protected ?string $sellerId = null,
		protected ?array $keywords = null,
		protected ?array $brandNames = null,
		protected ?array $classificationIds = null,
		protected ?int $pageSize = null,
		protected ?string $pageToken = null,
		protected ?string $keywordsLocale = null,
	) {}

Also, the changes we had done to the Deserialies.php Trait were reverted back to the faulty state. The file doesn't state that it is auto generated, but it changes with the schema:generate command.

I'm a bit in a hurry right now, so I can't dig deeper into this, but I wanted to let you know about that. Maybe there's something missing to unify the generation.

from selling-partner-api.

jlevers avatar jlevers commented on August 17, 2024

I think we resolved in this in the PR, but those changes were because the current flow assumes composer lint will be run after codegen. Maybe I'll update the build process to automatically run the linter.

from selling-partner-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.