tolatolatop / rtgitee

0 stars 0 forks source link

Storing openapi.json #5

Open tolatolatop opened 10 months ago

tolatolatop commented 10 months ago

Recommend a path for storing interface prototype files openapi.json in the Rust repository.

ZekangZhouKGR commented 10 months ago

In a Rust repository, it is common to store interface prototype files, such as openapi.json, in the src directory. However, if the openapi.json file is specific to a certain module or feature, it can be stored in a subdirectory within the src directory.

Here is a recommended path for storing the openapi.json file in a Rust repository:

src/
  openapi/
    openapi.json

By creating a separate directory called openapi within the src directory, you can keep the interface prototype files organized and easily distinguishable from the rest of the source code.