Include imports for Request configuration classes and model classes for snippets that make use of the same

Open
#130 2 comments 0 reactions 1 assignee View on GitHub

@shemogumbe is already working on this.

Since Mar 19, 2024.

Assessment

This issue has not been assessed yet.

Description

When a snippet makes use of a model class, or a request configuration class, not having these in in an include line in the snippets throws an error.
Customers have to go through the painful experience of manually looking for the appropriate path and including or relying on IDE hints to fix the errors until all needed imports are included:

  • Include path to the model class or namespace to solve the missing class error.
  • Include path to request configuration class for models that use request configuration to remove missing class error and enhance copy and paste experience.
  • Change Raptor import mechanism so that Raptor tests rely on imports within the snippets
Dominant language
PHP
Stars
16
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-php-core

All issues in microsoftgraph/msgraph-sdk-php-core

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.