knuckleswtf / knuckleswtf/scribe

Custom Endpoint Scenario 1 bug with generate

Open
#752 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
2.3k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

### Scribe version

4.25

### PHP version

8.2.9

### Framework

Laravel

### Framework version

9

### Scribe config

```ruby
title => "SC Tracker API Documentation"
base_url => "https://localhost:8000/"
type => "laravel"
try_it_out.enabled => false
try_it_out.base_url => "http://127.0.0.1:8000"
auth.enabled => true
auth.name => "Authorization"
auth.placeholder => "{ACCESS_TOKEN}"
translations => "en"
```

### What happened?

I have run scribe:generate and produced the yaml files. i changed the one named 0.yaml where i removed some body parameters data and replaced with an empty string, then i ran generate again and the changes were respected and not changed. but if i make some new changes and run the command again it dosen't respect the changes anymore, so if you make some changes and then run 2 generate commands after each other then they remove the changes.

### Docs

- [X] I've checked [the docs](https://scribe.knuckles.wtf/laravel), the [troubleshooting guide](https://scribe.knuckles.wtf/laravel/troubleshooting), and [existing issues](https://github.com/knuckleswtf/scribe/issues?q=is%3Aissue+), but I didn't find a solution

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by editing the generated 0.yaml file, running scribe:generate twice, and checking whether the changes remain. Trace the generate command and the handling of generated YAML files; done means consecutive generation runs preserve the described manual changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.